THotPDF.Create Method

 

THotPDF.Create Method

THotPDF

 

先頭  前へ  次へ

Creates an instance of THotPDF.

 

Delphi syntax:

constructor Create( AOwner: TComponent ); override;

 

C++ syntax:

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

 

説明

実行時に THotPDF オブジェクトをインスタンス化するには Create を呼び出します。コンストラクターはコンポーネントインスタンスを割り当て、その後の PDF 生成で使う既定のドキュメント設定を初期化します

 

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