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.SetSaveNewImageFormat
Whether to recompress 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. | ||
| Value | Whether to recompress images. Value can be 0 or 1. | 0 |
Result
Returns OK on success.
Description
Whether to recompress images.The property SaveNewImageFormat specifies whether images should be downscaled if the original resolution of the image is higher than the value of the property resolution (see also DynaPDF.SetResolution). If the property SaveNewImageFormat is false, JPEG compressed images will be inserted in pass- through mode as long as the image is not a CMYK JPEG (such images must be converted because Acrobat viewer require another byte order).
Default value = true
See also SetSaveNewImageFormat function in DynaPDF manual.
Examples
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 )
See also
- DynaPDF.ClipPath
- DynaPDF.DrawCircle
- DynaPDF.GetSaveNewImageFormat
- DynaPDF.InsertImage
- DynaPDF.InsertImageFile
- DynaPDF.New
- DynaPDF.SetCompressionFilter
- DynaPDF.SetJPEGQuality
- DynaPDF.SetResolution
- DynaPDF.SetUseTransparency
Example Databases
- DynaPDF/DynaPDF PlaceTemplate
- DynaPDF/Picture to PDF with navigation
- DynaPDF/Picture to PDF
- DynaPDF/Place Picture
- DynaPDF/PSD Conversion
- DynaPDF/Scan with WIA to PDF
- DynaPDF/Tables
- DynaPDF/Watermark pages
- OCR/OCR with DynaPDF
Created 18th August 2014, last changed 30th April 2020
DynaPDF.SetResolution - DynaPDF.SetSeparationInfo
Feedback: Report problem or ask question.
Links
MBS Xojo tutorial videos