Table of Contents

TTMSFNCPDFGraphicsLibOutputWriter.FinishContentStream Method

Finalises the current content stream and returns it as a stream, optionally applying zlib compression.

API unit family: TMSFNCPDFCoreLibBase Declaring type: TTMSFNCPDFGraphicsLibOutputWriter

Syntax

function FinishContentStream(AReference: String; ACompress: Boolean; AAdditionalFlags: String = ''): TStringStream;

Parameters

Name Description
AReference PDF indirect object reference string to embed in the stream dictionary.
ACompress When True, applies FlateDecode compression to the stream.
AAdditionalFlags Optional extra stream dictionary entries appended verbatim.

Returns

Complete PDF stream object including the stream dictionary and content bytes. The caller is responsible for freeing the returned stream.