Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

DynaPDF.SetCompressionFilter

The function sets the compression filter which is used to compress images.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 3.1 Yes Yes Yes Yes Yes

MBS( "DynaPDF.SetCompressionFilter"; PDF; Filter )

Parameters

Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
Filter The compression flter to use: Flate, JPEG, JP2K. "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

Example Databases


DynaPDF.SetColorSpace   -   DynaPDF.SetCompressionLevel

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins