THotPDF.CurrentPage Property
HotPDF Delphi PDF Component Developer Guide loslab Logo

 

THotPDF.CurrentPage

THotPDF

 

Top  Previous  Next

Gives access to the document page.

 

Delphi syntax:

property CurrentPage: THPDFCurrentDocument;

 

C++ syntax:

__property THPDFCurrentDocument* CurrentPage;

 

Description

Use the CurrentPage property to access page methods and properties.

 

Code Example

HPDF := THotPDF.Create( nil );
try
  HPDF.FileName := 'c:\Output.pdf';
  HPDF.BeginDoc;                     // Start PDF document creation
  HPDF.CurrentPage.TextOut( 100, 100, 'Hello World!' );
  HPDF.EndDoc;                       // Finish and save PDF document
finally
  HPDF.Free;
end;
Copyright©2007-2025 losLab.com