THotPDF.AddPage Method
HotPDF Delphi PDF Component Developer Guide loslab Logo

 

THotPDF.AddPage

THotPDF

 

Top  Previous  Next

Adds new page to the document.

 

Delphi syntax:

procedure AddPage;

 

C++ syntax:

void __fastcall AddPage ( void );

 

Description

Use AddPage method to add new clear page to the current document.

 

Code Example

HPDF.AddPage( psA4, poPortrait );        // Add A4 page in portrait orientation
HPDF.CurrentPage.TextOut( 200, 400, 'Page 1' );

HPDF.AddPage( psLetter, poLandscape );   // Add Letter page in landscape orientation
HPDF.CurrentPage.TextOut( 300, 200, 'Page 2' );
Copyright©2007-2025 losLab.com