THotPDF.BeginDoc 메서드

 

THotPDF.BeginDoc

THotPDF

 

맨 위  이전  다음

Creates new document.

 

Delphi 구문:

procedure BeginDoc ( Initial: boolean = false );

 

C++ 구문:

void __fastcall BeginDoc ( bool Initial = false );

 

설명

BeginDoc는 새 PDF document를 시작하고 첫 page를 만듭니다. 일반적인 사용에서는 default parameter value로 BeginDoc를 호출한 뒤 CurrentPage에 그립니다

 

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;

 

참조: EndDoc