Output parameters (PDF)
Created Date: 27 Nov, 2020 09:43
Last Modifed Date: 29 Apr, 2023 11:37
The following settings are supported:
Parameter | Possible values | Description |
---|---|---|
PDFVersion |
| Sets PDF version. The default is |
| For PDF/A, consider using a PDF/A preset. The conformance level PDF/A-2u (“u“ = “Unicode“) simplifies text searching and copying by ensuring text has a Unicode representation. For PDF/X-1a, consider using a PDF/X-1a preset. For PDF/X-4, consider also setting an output intent with the TargetProfile parameter, or use the PDF/X-4 Preset. | |
RenderResolution |
| Sets the resolution of page portions that must be rendered (for example, to flatten transparency). The default is |
RenderedImageCompression |
| Set the desired image compression for images that are the result of rendering. The default is This is advisory only and may not be honored in all cases. For example, PDF/A does not allow LZW. |
MonoImageDownsamplingResolution | 0 to 32768 | The desired output resolution, in dpi. Pass 0 to leave images unchanged, which is the default. |
MonoImageDownsamplingThreshold | 0 to 32768 | The threshold above which images are reduced to the desired resolution. Pass |
MonoImageDownsamplingMethod |
| The method to use when downsampling. The default is |
GrayImageDownsamplingResolution | 0 to 32768 | The desired output resolution, in dpi. Pass 0 to leave images unchanged, which is the default. |
GrayImageDownsamplingThreshold | 0 to 32768 | The threshold above which images are reduced to the desired resolution. Pass |
GrayImageDownsamplingMethod |
| The method to use when downsampling. The default is bicubic for gray images. |
ColorImageDownsamplingResolution | 0 to 32768 | The desired output resolution, in dpi. Pass 0 to leave images unchanged, which is the default. |
ColorImageDownsamplingThreshold | 0 to 32768 | The threshold above which images are reduced to the desired resolution. Pass |
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 re-encoded. The default is CCITT is not allowed for color images. This is advisory only and may not be honored in all cases. |
GrayImageCompression |
| Set the desired image compression for gray images that need to be re-encoded. The default is CCITT is not allowed for gray images. This is advisory only and may not be honored in all cases. For example, |
MonoImageCompression |
| Set the desired image compression for monochrome images that need to be re-encoded. The default is JPEG/DCT is not allowed for mono images, and This is advisory only and may not be honored in all cases. For example, |
UseMaskResolutionForMaskedImages |
| If If The default is Has no effect if downsampling is not enabled. |
DownsampleMaskedImages |
| Sets whether to downsample masked images. The default is This setting is ignored if downsampling is not enabled. |
JPEGQuality | 1 to 5 | Sets the JPEG quality to use when compressing images in DCT format. The default is 3 - medium quality. |
JPEGChromaSubsampling |
| Chroma subsampling is desirable for natural images, as it can result in lower file sizes without significantly lowering perceived quality. However, for artificial images such as rasterized text sharp transitions from one color to another are present, the result can be unwanted artifacts that compromise the perceived quality of image. This setting is used in conjunction with JPEGQuality. The default value is JPEGQuality=3, JPEGChromaSubsampling=false The combination of these two settings keeps the output file size low without compromising the quality of artificial images. They should be set in the order shown (that is, JPEGQuality first). |
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 ConvertAllColors if converting everything is required. For For |
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 ConvertAllColors if converting everything is required. When used in conjunction with "Preset=PDF/X-4" the OutputIntent of the target PDF is set to this profile. |
ConvertAllColors |
| Sets whether all content should be color-converted to the target space set by TargetProfile. The default is This parameter is ignored and assumed true when writing to |
ConvertGray |
| Set whether gray colors should be subject to color conversion (that is, colors using The default is This parameter is ignored unless ConvertAllColors = |
OverrideMaximumICCVersionMajor | integer | Override the maximum allowed ICC profile version for PDF output Different PDF versions allow different ICC profile versions to be embedded. PDF/X-4 for example, by a strict reading of the specification, allows ICC profiles of version 4.2 or earlier. However, some consumers allow newer ICC Profiles to be used. This API allows the maximum ICC version to be overridden. Only do this if it is certain that the downstream consumers are able to handle the setting. The default value is |
OverrideMaximumICCVersionMinor | integer | |
CompressPages |
| Set whether compression should be applied to page content. The default is If you use incremental output, the content of unedited pages is not affected. Creating an uncompressed PDF is not significantly larger, but it can be viewed or edited in a text editor, which is useful for debugging purposes. |
EmbedBase14Fonts |
| Set whether the base 14 PDF fonts should be forcibly embedded. If If you use incremental output, the content of unedited pages is not affected. The default is |
EmbedFonts |
| Set whether fonts should be forcibly embedded. If If you use incremental output, the content of unedited pages is not affected. The default is |
SubsetFonts |
| Set whether embedded fonts should be subset or not. The default is This is a preference only. Some font types may require subsetting based on context. If you use incremental output, the content of unedited pages is not affected. |
AlwaysEmbed | fontlist | Provide a list of font names that should always be embedded, regardless of the settings for setEmbedFonts() or setEmbedBase14Fonts(). This setting is ignored for If you use incremental output, the content of unedited pages is not affected. The fontlist is a string with the fonts delimited with semicolons (backslashes are used as an escape character). |
NeverEmbed | fontlist | Provide a list of font names that should never be embedded, regardless of the settings for setEmbedFonts() or setEmbedBase14Fonts(). This setting is ignored for If you use incremental output, the content of unedited pages is not affected. The fontlist is a string with the fonts delimited with semicolons (backslashes are used as an escape character). |
AllowRestrictedFonts |
| Allow restricted fonts to be embedded in the output. If For PDF/X-4 and PDF/A-2b output, the output instead fails if this setting is The default is |
EnableTrueTypeNotDef |
| Enable the use of a True Type font's If If For PDF/X-4 and PDF/A-2b output, the flag is set to The default is |
BlockNotdefGlyphs |
| Set whether to block If This setting is ignored for PDF/A and PDF/X. The default is |
Emit30CmapSubtableForSymbolicTrueTypeFonts |
| Set whether to add a If This setting is ignored for PDF/A and PDF/X. The default is Such subtables are required for compatibility with some PDF consumers, and are well tolerated by most PDF consumers. However, some preflight tools may emit errors. This can be set to |
Linearize |
| The default is |
AutoRotatePages |
| Set whether pages should be automatically rotated. The default is If you use incremental output, the content of unedited pages is not affected. If The rotation is not a physical rotation of content, merely the PDF Page's view rotate is set appropriately. |
Producer | string | Sets the producer string, overriding the default value that is set to Mako Vx.x.x, where x.x.x is the version number. |
ForceEmitPageGroup |
| If an input PDF page contains a transparency page group, Mako does not emit a page group in an output PDF unless it detects that the page actually contains transparency. This default behavior is overridden by setting this to |
ForceMediaBoxOriginZero |
| In Mako 5.2.1, a change was made such that the |
AllowOptionalContentUpdateDuringWrite |
| Allows Optional Content to be updated while an For this to work, groups being used on a given page must have been added to the optional content before writing that page. The default is
|
ValidateXmp |
| When writing output, XMP properties that do not use the schemas defined by the XMP Specification, or related ISO standards such as PDF/X or PDF/A, are dropped. Set to Using arbitrary schemas may produce non-conformant output when writing to PDF/X or PDF/A, and it is advised to leave this set to |
NonUtf8InkNameFallbackEncoding |
| When saving to PDF/X-4 or PDF/A-2b, Mako is required to convert to UTF-8 color names that are not already encoded as such in order to conform to the respective standard.
Alternatively, the other choices for this setting can be used to to force the use of a specific encoding. |
The downsampling options described here don't always produce the expected result. See Downsampling of masked images for further details.