Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

DynaPDF.SetCompressionLevel

Sets the current compression level.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 4.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.SetCompressionLevel"; PDF; CompressLevel )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
CompressLevel The new compression level. Can be none, default, fastest or max. "none"

Result

Returns OK or error.

Description

Sets the current compression level.
If the compression level is None, content streams will be left uncompressed. This value is useful if a content stream must be debugged, the value will be ignored for image streams. The compression level is also used by certain image compression filters, see DynaPDF.InsertImage for further information.
See also DynaPDF.GetCompressionLevel.

See also SetCompressionLevel function in DynaPDF manual.

See also

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 30th November 2019


DynaPDF.SetCompressionFilter - DynaPDF.SetContent