THPDFPage Class

 

THPDFPage

메서드         속성      개요

맨 위  이전  다음

THPDFPage represents a single page in the PDF document.

 

유닛

HPDFDoc.pas

 

설명

Path를 그리고 text를 배치하며 image를 render하고 size, orientation, graphics state 같은 page-level setting을 제어하려면 THPDFPage를 사용하십시오

 

사용 예:

 

uses

  ...

  HPDFDoc,

  ...

 

type

   ...

   HPDF: THotPDF;

   ...

 

procedure TForm1.HelloWorldButtonClick(Sender: TObject);

begin

   HPDF.AutoLaunch := true;                                          // Show the PDF after it is created

   HPDF.FileName := '.\HelloWorld.pdf';

   HPDF.BeginDoc;                                                       // Start PDF generation

   HPDF.CurrentPage.TextOut(10, 10, 0, 'Hello World!');  // Write text on the first page

   HPDF.EndDoc;                                                         // Finalize and save the PDF

end;