THotPDF.Create Method

 

THotPDF.Create Method

THotPDF

 

Viršus  Ankstesnis  Kitas

Creates an instance of THotPDF.

 

Delphi syntax:

constructor Create( AOwner: TComponent ); override;

 

C++ syntax:

__fastcall virtual THotPDF( Classes::TComponent* AOwner );

 

Aprašas

Kviesti Create, kad vykdymo metu sukurtumėte THotPDF objektą. Konstruktorius paskirsto komponento egzempliorių ir inicializuoja numatytuosius dokumento nustatymus, naudojamus vėlesnei PDF generacijai

 

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: Destroy