THotPDF.EndDoc Method
HotPDF Delphi PDF Component Developer Guide loslab Logo

 

THotPDF.EndDoc

THotPDF

 

Top  Previous  Next

Closes the document.

 

Delphi syntax:

procedure EndDoc;

 

C++ syntax:

void __fastcall EndDoc ( void );

 

Description

EndDoc method finalize current document, close all document objects and save document.

 

Code Example


HPDF := THotPDF.Create( nil );
try
  HPDF.FileName := '.\Output.pdf';
  HPDF.BeginDoc;   // Start PDF document creation
  HPDF.CurrentPage.TextOut( 100, 100, 'Hello World!' );
  HPDF.EndDoc;     // Finish and save PDF document
finally
  HPDF.Free;
end;

 

See also: BeginDoc

Copyright©2007-2025 losLab.com