Table of Contents

TTMSFNCPDFGraphicsLibOutputWriter.CompressStream Method

Compresses the content of AStream using zlib deflate and returns the result in a new TStringStream.

API unit family: TMSFNCPDFCoreLibBase Declaring type: TTMSFNCPDFGraphicsLibOutputWriter

Syntax

function CompressStream(AStream: TStringStream): TStringStream;

Parameters

Name Description
AStream Stream to compress.

Returns

New stream containing the deflate-compressed bytes. The caller is responsible for freeing the returned stream.