THotPDF.BeginDoc Method

 

THotPDF.BeginDoc

THotPDF

 

Överst  Föregående  Nästa

Creates new document.

 

Delphi syntax:

procedure BeginDoc ( Initial: boolean = false );

 

C++ syntax:

void __fastcall BeginDoc ( bool Initial = false );

 

Beskrivning

BeginDoc startar ett nytt PDF-dokument och skapar den första sidan. Vid normal användning anropar du BeginDoc med standardparametervärdet och ritar sedan på 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;

 

Se även: EndDoc