|
Creates new document.
Delphi syntax:
procedure BeginDoc ( Initial: boolean = false );
C++ syntax:
void __fastcall BeginDoc ( bool Initial = false );
תיאור
BeginDoc מתחיל מסמך PDF חדש ויוצר את העמוד הראשון. בשימוש רגיל, קרא ל-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;
See also: EndDoc
|