THotPDF.BeginDoc Methode

 

THotPDF.BeginDoc

THotPDF

 

Boven  Vorige  Volgende

Maakt een nieuw document aan

 

Delphi-syntaxis:

procedure BeginDoc ( Initial: boolean = false );

 

C++-syntaxis:

void __fastcall BeginDoc ( bool Initial = false );

 

Beschrijving

BeginDoc start een nieuw PDF-document en maakt de eerste pagina aan. Roep BeginDoc normaal gesproken aan met de standaardparameterwaarde en teken daarna op CurrentPage

 

Codevoorbeeld


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;

 

Zie ook: EndDoc