THotPDF.BeginDoc-metodi

THotPDF.BeginDoc

THotPDF

Ylös Edellinen Seuraava

Luo uuden asiakirjan

Delphi syntax:

procedure BeginDoc ( Initial: boolean = false );

C++ syntax:

void __fastcall BeginDoc ( bool Initial = false );

Kuvaus

BeginDoc aloittaa uuden PDF-dokumentin ja luo ensimmäisen sivun. Normaalikäytössä kutsu BeginDoc-menetelmää oletusparametriarvolla ja piirrä sitten kohteeseen 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