THotPDF.CurrentPage Property

 

THotPDF.CurrentPage

THotPDF

 

Đầu trang  Trước  Tiếp

Gives access to the document page.

 

Delphi syntax:

property CurrentPage: THPDFPage;

 

C++ syntax:

__property THPDFPage* CurrentPage;

 

Mô tả

Dùng thuộc tính CurrentPage để truy cập các phương thức và thuộc tính của trang

 

Ví dụ mã

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;