THotPDF.EndDoc 메서드

 

THotPDF.EndDoc

THotPDF

 

맨 위  이전  다음

Closes the document.

 

Delphi 구문:

procedure EndDoc;

 

C++ 구문:

void __fastcall EndDoc ( void );

 

설명

EndDoc는 current document를 finalize하고 internal PDF object를 close하며 output file 또는 stream을 씁니다

 

Document finalization 중 HotPDF는 active page를 close하고 final page content stream을 씁니다. 이 단계에 detailed page-content diagnostic이 필요하면 HotPDF.inc에서 PAGECONTENT_DEBUG_FILE을 enable하십시오. 그러면 page-content merge 및 stream-size trace data가 있는 PageContent_Debug.txt가 생성됩니다. 이 switch는 기본적으로 disabled이므로 normal build는 이 file을 만들지 않습니다

 

General library debug logging is controlled separately by withDEBUG in HotPDF.inc, which writes HotPDF-Debug.log when enabled.

 

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;

 

참조: BeginDoc