THotPDF.Create Method

 

THotPDF.Create Method

THotPDF

 

傳回頂部  上一頁  下一頁

Creates an instance of THotPDF.

 

Delphi 語法:

constructor Create( AOwner: TComponent ); override;

 

C++ 語法:

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

 

說明

呼叫 Create 在 runtime 建立 THotPDF object。constructor 會設定 component instance,並初始化後續 PDF generation 使用的 default document settings

 

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;

 

請參閱: Destroy