THotPDF.Destroy Destructor

 

THotPDF.Destroy Destructor

THotPDF

 

맨 위  이전  다음

Destroys an instance of THotPDF.

 

Delphi 구문:

destructor Destroy; override;

 

C++ 구문:

__fastcall virtual ~THotPDF( void );

 

설명

Application에서 Destroy를 직접 호출하지 마십시오. 대신 Free를 호출하십시오. FreeTHotPDF object가 nil이 아님을 확인한 뒤에만 Destroy를 호출합니다

 

Code Example

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

 

참조: Create