setParameter()
IPSOutput supports several parameters that control how the PostScript is written. These can be set in code using setParameter() with two strings.
|
C++
|
C#
|
This method supports scenarios where it is necessary to set an output parameter at runtime, for example in a printer driver where the user is offered options from a menu.
The sample makoconverter allows you to experiment with these parameters by adding them to the command line, for example:
makoconverter MyInput.pdf MyOutput.ps TargetColorSpace=DeviceGray ConvertAllObjectsToTargetColorSpace=true
The following settings are supported.
|
Parameter |
Possible values |
Description |
|---|---|---|
|
MonoImageDownsamplingResolution |
|
The desired output resolution, in dpi. Pass 0 to leave images unchanged, which is the default. |
|
MonoImageDownsamplingThreshold |
|
The threshold above which images will be reduced to the desired resolution. A value of 0 means always downsample to the specified resolution. |
|
MonoImageDownsamplingMethod
|
|
The method to use when downsampling. The default is subsample for monochrome images; using any other method will result in grayscale output. |
|
GrayImageDownsamplingResolution |
|
The desired output resolution, in dpi. Pass 0 to leave images unchanged, which is the default. |
|
GrayImageDownsamplingThreshold |
|
The threshold above which images will be reduced to the desired resolution. A value of 0 means always downsample to the specified resolution. |
|
GrayImageDownsamplingMethod |
|
The method to use when downsampling. The default is subsample for monochrome images; using any other method will result in grayscale output. |
|
ColorImageDownsamplingResolution |
|
The desired output resolution, in dpi. Pass 0 to leave images unchanged, which is the default. |
|
ColorImageDownsamplingThreshold |
|
The threshold in dpi above which images will be reduced to the desired resolution. A value of 0 means always downsample to the specified resolution. |
|
ColorImageDownsamplingMethod |
|
The method to use when downsampling. The default is bicubic for color and grayscale images. |
|
ColorImageCompression |
|
Set the desired image compression for color images that need to be reencoded. The default is DCT. |
|
GrayImageCompression |
|
Set the desired image compression for gray images that need to be reencoded. The default is DCT. |
|
MonoImageCompression |
|
Set the desired image compression for monochrome images that need to be reencoded. The default is CCITT. |
|
JPEGQuality |
|
Sets the JPEG quality to use when compressing images in DCT format. The default is 3 - medium quality. |
|
TargetResolution |
|
The desired output resolution, in dpi. Pass 0 to leave images unchanged. The default is 600dpi. |
|
TargetColorSpace |
|
By default, the target color space is used if anything must be rendered or color-converted. The default behavior is to apply this only when required. Use ConvertAllObjectsToTargetColorSpace if converting everything is required. For PDF/A-1b output, an OutputIntents dictionary will be created for this color space. LAB color spaces may not be used as a destination color space for PDF/A. For PDF/X-1a output, only DeviceCMYK is supported; this setting is ignored. |
|
TargetProfile |
|
Sets the target color space for the output using an ICC profile. By default, the target color space is used if anything must be rendered or color-converted. The default behavior is to apply this only when required. Use ConvertAllObjectsToTargetColorSpace if converting everything is required. |
|
ConvertAllObjectsToTargetColorSpace |
|
Sets whether all content should be color converted to the target space set by TargetProfile. The default is true. |
|
IgnoreDeviceGrayDuringColorConversion |
|
Set whether gray colors should be subject to color conversion. That is, colors using DeviceGray, sGray, or single-component ICC colorspaces. The default is true. |
|
RenderedImageCompression |
Flate LZW |
The default is LZW. |