Platforms to show: All Mac Windows Linux Cross-Platform
DynaPDFOptimizeParamsMBS class
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| class | DynaPDF | MBS DynaPDF Plugin | 16.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Use this class to configure the Optimize function.
See the DynaPDF manual for details.
If you like to scale images, you can decide for the parameter individually for 1 bit black & white images, grayscale images and multi-channel images.
For color images you can set MinColorRes property to e.g. 50, so all images with 50 dpi or more are considered. Then they are scaled to the resolution in ResColorImages property to e.g. 150 and compressed with the filter defined in FilterColor, e.g. JPEG. If the final image is bigger than the original, the new image is discarded. Sometimes a highly optimized tiff is smaller than a JPEG after scaling.
Use MinGrayRes, ResGrayImages and FilterGray properties for grayscale images.
Use Min1BitRes, Res1BitImages and Filter1Bit properties for 1 bit black & white images. For these you may prefer to have a higher resolution and e.g. TIFF with kcfCCITT compression.
use the JPEGQuality property to set the desired quality for the JPEG compression or JP2KQuality for JPEG 2000, if these filters are used.
With the MinLineWidth property, you can increase the size of lines. If not zero, all lines will be widened to this width.
ExcludeCS allows you to have an array of color space handles, that are excluded from modifications.
With the various Flags properties, you can pass additional flags.
See kof2* flags for the Flags2 property.
- 18 properties
- property Contrast as Double New in 26.3
- property ExcludeCSCount as Integer
- property Filter1Bit as Integer
- property FilterColor as Integer
- property FilterGray as Integer
- property Flags2 as Integer
- property Flags3 as Integer
- property Flags4 as Integer
- property IncludeCS as Boolean
- property JP2KQuality as Integer
- property JPEGQuality as Integer
- property Min1BitRes as Integer
- property MinColorRes as Integer
- property MinGrayRes as Integer
- property MinLineWidth as Single
- property Res1BitImages as Integer
- property ResColorImages as Integer
- property ResGrayImages as Integer
- 3 methods
- method Constructor
- method ExcludeCS as UInt32()
- method setExcludeCS(values() as UInt32)
This class has no sub classes.
Blog Entries
- MBS Xojo Plugins, version 26.3pr3
- MBS Xojo Plugins, version 24.6pr2
- MBS Xojo Plugins, version 22.0pr7
- MBS Xojo Plugins, version 21.3pr1
- MBS Xojo / Real Studio Plugins, version 16.4pr1
- MBS Xojo / Real Studio plug-ins in version 16.3
- MBS Xojo / Real Studio Plugins, version 16.3pr1
Xojo Developer Magazine
Release notes
- Version 26.3
- Added Contrast property to DynaPDFOptimizeParamsMBS class.
- Version 25.0
- Fixed memory leak with DynaPDFOptimizeParamsMBS class destructor leaking an array.
- Version 22.0
- Added IncludeCS property to DynaPDFOptimizeParamsMBS class.
- Version 21.3
- Added ExcludeCSCount property, ExcludeCS and setExcludeCS methods to DynaPDFOptimizeParamsMBS class.
Some methods using this class:
- DynaPDFMBS.Optimize(Flags as Integer = 0, Params as DynaPDFOptimizeParamsMBS = nil) as boolean
- DynaPDFParserMBS.Constructor(PDF as DynaPDFMBS, OptimizeFlags as Integer = 0, OptimizeParams as DynaPDFOptimizeParamsMBS = nil)
- DynaPDFParserMBS.WriteToPage(OptimizeFlags as Integer = 0, OptimizeParams as DynaPDFOptimizeParamsMBS = nil) as Boolean
Some properties using for this class:
- DynaPDFParserMBS.OptimizeParams as DynaPDFOptimizeParamsMBS
Some examples using this class:
Some related classes:
The items on this page are in the following plugins: MBS DynaPDF Plugin.
DynaPDFOCUINodeMBS - DynaPDFOutputIntentMBS