THotPDF.BeginDoc-Methode

 

THotPDF.BeginDoc

THotPDF

 

Oben  Zurück  Weiter

Erstellt ein neues Dokument

 

Delphi-Syntax:

procedure BeginDoc ( Initial: boolean = false );

 

C++-Syntax:

void __fastcall BeginDoc ( bool Initial = false );

 

Beschreibung

BeginDoc startet ein neues PDF-Dokument und erstellt die erste Seite. Rufen Sie BeginDoc im Normalfall mit dem Standardparameterwert auf und zeichnen Sie anschließend auf CurrentPage

 

Code Example


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;

 

See also: EndDoc