THotPDF.BeginDoc Méthode

 

THotPDF.BeginDoc

THotPDF

 

Haut  Précédent  Suivant

Crée un nouveau document

 

Syntaxe Delphi :

procedure BeginDoc ( Initial: boolean = false );

 

Syntaxe C++ :

void __fastcall BeginDoc ( bool Initial = false );

 

Description

BeginDoc démarre un nouveau document PDF et crée la première page. En usage normal, appelez BeginDoc avec la valeur de paramètre par défaut, puis dessinez sur CurrentPage

 

Exemple de code


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;

 

Voir aussi: EndDoc