THotPDF.CurrentPage Property

 

THotPDF.CurrentPage

THotPDF

 

傳回頂部  上一頁  下一頁

Gives access to the document page.

 

Delphi 語法:

property CurrentPage: THPDFPage;

 

C++ 語法:

__property THPDFPage* CurrentPage;

 

說明

使用 CurrentPage property 存取 page methods 與 properties

 

Code Example

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