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
Whether to recompress 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. | ||
Value | Whether to recompress images. Value can be 0 or 1. | 0 |
Returns OK on success.
See also SetSaveNewImageFormat function in DynaPDF manual.
Pass through JPEGs if possible:
MBS( "DynaPDF.SetSaveNewImageFormat"; $PDF; 0 )
Maximum 300 dpi, pass through preferred and otherwise 90% JPEG compression:
MBS( "DynaPDF.SetJPEGQuality"; $PDF; 90 )
MBS( "DynaPDF.SetCompressionFilter"; $PDF; "jpeg" )
MBS( "DynaPDF.SetSaveNewImageFormat"; $PDF; 0 )
MBS( "DynaPDF.SetResolution"; $PDF; 300 )
MBS( "DynaPDF.SetUseTransparency"; $PDF; 0 )
This function checks for a license.
Created 18th August 2014, last changed 30th April 2020