THotPDF.BeginDoc Método

 

THotPDF.BeginDoc

THotPDF

 

Arriba  Anterior  Siguiente

Creates new document.

 

Sintaxis Delphi:

procedure BeginDoc ( Initial: boolean = false );

 

Sintaxis C++:

void __fastcall BeginDoc ( bool Initial = false );

 

Descripción

BeginDoc inicia un nuevo documento PDF y crea la primera página. En uso normal, llame a BeginDoc con el valor de parámetro predeterminado y después dibuje en CurrentPage

 

Ejemplo de código


HPDF := THotPDF.Create( nil );
try
  HPDF.FileName := '.\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;

 

Véase también: EndDoc