Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
The function sets the compression filter which is used to compress images.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
Filter | The compression flter to use: Flate, JPEG, JP2K, CCITT3, CCITT4, LZW, LZWBW, FlateBW, JBIG2. | "JPEG" |
Returns OK on success.
See also SetCompressionFilter function in DynaPDF manual.
Compress images with 75% JPEG compression:
MBS( "DynaPDF.SetCompressionFilter"; $PDF; "jpeg" )
MBS( "DynaPDF.SetJPEGQuality"; $PDF; 75 )
Disable compression for best results:
MBS( "DynaPDF.SetCompressionFilter"; $PDF; "flate" )
This function checks for a license.
Created 18th August 2014, last changed 31st August 2018