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
The class for optimize parameters.
Example
Var o as new DynaPDFOptimizeParamsMBS

o.MinColorRes = 100 // scale colored images with more than 100 dpi
o.ResColorImages = 150 // down to 150 dpi

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.

This class has no sub classes.

Blog Entries

Xojo Developer Magazine

Release notes

Some methods using this class:

Some properties using for this class:

Some examples using this class:

Some related classes:


The items on this page are in the following plugins: MBS DynaPDF Plugin.


DynaPDFOCUINodeMBS   -   DynaPDFOutputIntentMBS


The biggest plugin in space...