THotPDF.Create 메서드

 

THotPDF.Create Method

THotPDF

 

Top  Previous  Next

THotPDF의 인스턴스를 생성합니다.

 

Delphi syntax:

constructor Create( AOwner: TComponent ); override;

 

C++ syntax:

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

 

Description

런타임에 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;

 

See also: Destroy