Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Sets the quality of JPEG compressed images in percent if JPEG compression is used.
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. | ||
quality | The new JPEG quality. From 0 to 100. | 75 |
Returns OK on success.
See also SetJPEGQuality function in DynaPDF manual.
sets quality level:
MBS( "DynaPDF.SetJPEGQuality"; $PDF; 75 )
Save JPEG image to container as script:
Set Variable [ $Image ; Value: MBS("GMImage.NewFromContainer"; MyTable::BMPContainer) ]
Set Variable [ $r ; Value: MBS("GMImage.SetQuality";$Image; 90) ]
Set Field [ MyTable::JPEGContainer ; MBS("GMImage.WriteToJPEGContainer"; $Image) ]
Set Variable [ $r ; Value: MBS("GMImage.Release";$Image) ]
This function checks for a license.
Created 18th August 2014, last changed 21st June 2021