Skip to main content

Preflight Rules Reference

This page provides a summary of available preflight validation rules. For the complete reference, see the onprem documentation.

Available Rules

Rule TypeDescription
colorspaceValidates color space of images. Use allowedColorSpaces parameter to specify allowed values (e.g., ["CMYK"]).
spotcolorsValidates spot colors. Use allowedSpotColors parameter to specify allowed spot color names.
resolutionValidates image resolution. Use target parameter to specify minimum DPI.
safetyboxesValidates defined boxes (TrimBox, BleedBox, etc.).
nomarginsValidates that no important content is too close to trim edge.
insideBleedboxValidates that all content is within the bleed box.
sameorientationValidates that all pages have the same orientation.
forbiddenfontsValidates that no forbidden fonts are used. Use forbiddenFonts parameter.
allowedfontsValidates that only allowed fonts are used. Use allowedFonts parameter.
fonttypesValidates font types. Use allowedFontTypes parameter.
minfontsizeValidates minimum font size. Use minSize parameter.
textascurvesValidates that text is converted to curves.
embeddedfontsValidates that fonts are embedded in the PDF.

Common Parameters

ParameterTypeDescription
severitystring"error" or "warning" - determines if the issue must be fixed
enableFixbooleanIf true, displays a Fix button for autofix
pagesnumber[] | string[]Target pages (e.g., [1,3] or ["/2"] for every 2nd page)
paramsobjectRule-specific parameters

Example

{
"rules": [
{
"type": "colorspace",
"severity": "error",
"enableFix": true,
"params": {
"allowedColorSpaces": ["CMYK"]
}
},
{
"type": "resolution",
"severity": "warning",
"params": {
"target": 300
}
}
]
}

For the complete rules reference with all parameters, see the Preflight rules documentation.

Was this page helpful?