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

 

THotPDF.BeginDoc

THotPDF

 

Top  Previous  Next

Creates new document.

 

Delphi syntax:

procedure BeginDoc ( UseOutlines: boolean = false );

 

C++ syntax:

void __fastcall BeginDoc ( bool UseOutlines );

 

Description

BeginDoc method creates new document and adds first page to them. Set UseOutlines parameter to true to create outlines in the 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: EndDoc

 

Copyright©2007-2025 losLab.com