EndDoc
Printing, VCL, document creation
Description
Commits the current canvas as the final page, ends the job and, when FileName is not empty, saves the document to that file
After the call Printing is False and PageNumber is zero; the finished document stays in the owned library instance for inspection or further processing
Syntax
Delphi
Procedure TPDFlibPrinter.EndDoc;Remarks
Calling EndDoc without an active job raises EPDFlibPrinter
If the final canvas cannot be converted to a page the job is terminated, Aborted becomes True and EPDFlibPrinter is raised
If saving fails EPDFlibPrinter is raised after the job has already ended; the document remains in the library instance
See also
TPDFlibPrinter, SaveToFile, NewPageFromCanvasDC, LoadFromCanvasDC