TTMSFNCCustomPDFLib.EndDocument Method
Finalises the document and returns its content as a memory stream.
API unit family: TMSFNCPDFLib
Declaring type: TTMSFNCCustomPDFLib
Syntax
function EndDocument(AOpenInPDFReader: Boolean = False): TMemoryStream;
Parameters
| Name | Description |
|---|---|
AOpenInPDFReader |
When True, attempts to open the resulting PDF in the system PDF reader after saving. Default is False. |
Returns
Stream containing the complete PDF bytes, or nil when FileName was supplied to BeginDocument.