THotPDF.Destroy Destructor
HotPDF Delphi PDF Component Developer Guide loslab Logo

 

THotPDF.Destroy Destructor

THotPDF

 

Top  Previous  Next

Destroys an instance of THotPDF.

 

Delphi syntax:

destructor Destroy; override;

 

C++ syntax:

__fastcall virtual ~THotPDF( void );

 

Description

Do not call Destroy directly in an application. Instead, call Free. Free verifies that the THotPDF object is not nil and only then calls Destroy.

 

Code Example

HPDF := THotPDF.Create( nil );
try
  HPDF.FileName := 'c:\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: Create

Copyright©2007-2025 losLab.com