THotPDF.Create Method
HotPDF Delphi PDF Component Developer Guide loslab Logo

 

THotPDF.Create Method

THotPDF

 

Top  Previous  Next

Creates an instance of THotPDF.

 

Delphi syntax:

constructor Create( AOwner: TComponent ); override;

 

C++ syntax:

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

 

Description

Call Create to instantiate a THotPDF object at runtime. Create allocates memory for the instance of THotPDF and creates document default values.

 

Code Example


HPDF := THotPDF.Create( nil );
try
  HPDF.FileName := '.\Output.pdf';
  HPDF.BeginDoc;   // Start PDF document creation
  HPDF.CurrentPage.TextOut( 100, 100, 'Hello World!' );
  HPDF.EndDoc;     // Finish and save PDF document
finally
  HPDF.Free;
end;

 

See also: Destroy

 

Copyright©2007-2025 losLab.com