Table of Contents

ITMSFNCCustomPDFLib.EndDocument Method

Finalizes the document and returns the PDF data as a TMemoryStream.

API unit family: TMSFNCPDFLib Declaring type: ITMSFNCCustomPDFLib

Syntax

function EndDocument(AOpenInPDFReader: Boolean = False): TMemoryStream;

Parameters

Name Description
AOpenInPDFReader When True, opens the finished PDF in the system default PDF reader after saving.

Returns

Memory stream containing the complete PDF file; the caller is responsible for freeing the stream.