DynaPDF Manual - Page 586

Previous Page 585   Index   Next Page 587

Function Reference
Page 586 of 839
ofAdjZeroLineWidthOnly
= 0x00002000, // Meaningful only if the parameter MinLineWidth of the
// TOptimizeParams structure is greater zero. If set, change
// the line width of real hairlines only (a hairline is a
// one pixel width line -> LineWidth == 0).
ofCompressWithJBIG2
= 0x00004000, // If set, 1 bit images are compressed with JBIG2 if not
// already compressed with this filter.
ofNoFilterCheck
= 0x00008000, // Meaningful only, if the flag ofCompressWithJBIG2 is set.
// If set, re-compress all 1 bit images, also if already
// compressed with JBIG2.
ofConvertGrayTo1Bit
= 0x00010000 // Useful for scanned faxes since many scanners create gray
// images for black & white input.
/* ---------------------------- Notice: ----------------------------------------------
* Special color spaces like Separation, DeviceN, and NChannel are ignored unless the flag
ofConvertAllColors is set too.
*/
ofConvertToGray
=
0x00020000, // Convert images, text, and vector graphics to DeviceGray.
ofConvertToRGB
=
0x00040000, // Convert images, text, and vector graphics to DeviceRGB.
ofConvertToCMYK
=
0x00080000
// Convert images, text, and vector graphics to DeviceCMYK.
ocReplaceJP2KWithJPEG
=
0x00100000
// Meaningful only, if the flag ofConvertToGray,
// ofConvertToRGB, or ofConvertToCMYK is set. If set, JPEG
// 2000 compressed images (which are converted to another
// color space) will be compressed with JPEG instead of
// JPEG 2000. JPEG 2000 compression is very slow and
// requires much memory. JPEG compression is around 10
// times faster and produces almost identical results.
ofUseOtsuFilter
= 0x00200000
// Meaningful only, if the flag ofConvertGrayTo1Bit is set.
// The Otsu filter is useful for gray scanned faxes.
ofConvTextToOutlines
= 0x00400000, // If set, texts are converted to outlines or vector
// graphics. The resulting file contains no fonts with
// exception of Type3 fonts, if any.
ofConvNonEmbFontsOnly
= 0x00800000
// Meaningful only, if the flag ofConvTextToOutlines is
// set. If set, texts of non-embedded fonts are converted
// to outlines. Embedded fonts remain embedded.
ofIgnoreDeviceN
= 0x01000000, // Meaningful only if a color conversion flag is set. If
// set, DeviceN color spaces are left unchanged.
ofIgnoreNChannel
= 0x02000000, // If set, NChannel color spaces are left unchanged.
ofIgnoreSeparation
= 0x04000000, // If set, Separation color spaces are left unchanged.
ofFailOnOverprinting
= 0x08000000, // Meaningful only if a color conversion flag is set. If
// set, the function returns with a fatal error if an
// object with enabledoverprinting was found on the page.
// The appearance of overprinted objects would change and
// make the page maybe unusable.
// Overprinted objects can be left unchanged (set the flag
// ofSkipOverprintedObj in this case) or Optimize() can
// return with a fatal error to avoid the creation of an
// invalid document.
ofSkipOverprintedObj
= 0x10000000
// Meaningful only if a color conversion flag is set. If
// set, objects that would be rendered with enabled
// overprinting are left unchanged to avoid color errors on
// the page.
ofRemoveBatesNumbers
= 0x20000000, // Remove bates numbers if any. The type BatesN can contain
// headers / footers too.
ofRemoveHeaderFooter
= 0x40000000, // Remove headers / footers if any. This type is set if no
// bates numbering was added. To determine whether a file
// contains headers or footers call
// LoadHeaderFooterSettings().
ofIgnoreSeparationAll
= 0x80000000
// Meaningful only if a color conversion flag is set. If
// set, Separation color spaces with the special colorant
// "All" will be ignored.
}TOptimizeFlags;
typedef enum
{
of2Default
= 0x00000000, // Nothing to do
of2DeleteWatermarks
= 0x00000001, // Delete watermark templates
of2InclWatermarkAnnots
= 0x00000002
// If set, watermark annotations will be deleted.
}TOptimizeFlags2;
// Placeholder defined for future use
 

Previous topic: Optimize

Next topic: Usage