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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
DynaPDF.SetCompressionFilter
The function sets the compression filter which is used to compress images.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| DynaPDF | 3.1 | Yes | Yes | Yes | Yes | Yes |
Parameters
| 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" |
Result
Returns OK on success.
Description
The function sets the compression filter which is used to compress images.1 bit and 4 bit images are always compressed with Flate independent of the current compression filter. The filters are described in detail at InsertImage in DynaPDF help file.
See also SetCompressionFilter function in DynaPDF manual.
Examples
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" )
See also
- DynaPDF.ClipPath
- DynaPDF.DrawCircle
- DynaPDF.GetCompressionFilter
- DynaPDF.GetCompressionLevel
- DynaPDF.InsertImage
- DynaPDF.InsertImageFile
- DynaPDF.New
- DynaPDF.SetCompressionLevel
- DynaPDF.SetJPEGQuality
- DynaPDF.SetSaveNewImageFormat
Example Databases
- DynaPDF/DynaPDF PlaceTemplate
- DynaPDF/Picture to PDF with navigation
- DynaPDF/Picture to PDF
- DynaPDF/Scan with WIA to PDF
- DynaPDF/Watermark pages
Created 18th August 2014, last changed 31st August 2018
DynaPDF.SetColorSpace - DynaPDF.SetCompressionLevel
Feedback: Report problem or ask question.
Links
MBS Xojo PDF Plugins