THotPDF.EndDoc Method

 

THotPDF.EndDoc

THotPDF

 

למעלה  הקודם  הבא

Closes the document.

 

Delphi syntax:

procedure EndDoc;

 

C++ syntax:

void __fastcall EndDoc ( void );

 

תיאור

EndDoc מסיים את המסמך הנוכחי, סוגר אובייקטי PDF פנימיים וכותב את קובץ או זרם הפלט

 

במהלך finalization של המסמך HotPDF סוגרת את העמוד הפעיל וכותבת את page content stream הסופי. אם צריך diagnostics מפורטים של page-content בשלב זה, הפעל PAGECONTENT_DEBUG_FILE ב-HotPDF.inc. הדבר יוצר PageContent_Debug.txt עם trace של merge וגדלי stream. המתג כבוי כברירת מחדל

 

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;

 

See also: BeginDoc