Skip to main content
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

FMX.TMSFNCPDFLib.hppPascalC++
function EndDocument(AOpenInPDFReader: Boolean = False): TMemoryStream;
virtual System::Classes::TMemoryStream* __fastcall EndDocument(bool AOpenInPDFReader = false) = 0;

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.