THPDFPage

 

THPDFPage

Metódusok         Tulajdonságok      Áttekintés

Fel 

THPDFPage represents a single page in the PDF document.

 

Unit

HPDFDoc.pas

 

Leírás

A THPDFPage segítségével útvonalakat rajzolhat, szöveget helyezhet el, képeket renderelhet, és olyan oldalszintű beállításokat vezérelhet, mint a méret, a tájolás és a grafikai állapot

 

Használati példa:

 

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;