THPDFPage

 

THPDFPage

Methods         Properties      Visão geral

Topo

THPDFPage representa uma única página no documento PDF.

 

Unit

HPDFDoc.pas

 

Descrição

Use THPDFPage para desenhar paths, colocar texto, renderizar imagens e controlar configurações no nível de página como tamanho, orientação e graphics state.

 

Using example:

 

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;                                                       // Inicia a geração do PDF

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

   HPDF.EndDoc;                                                         // Finalize and save the PDF

end