pdfToolbox can be calles using either actions or .kpfx preflight profiles.
A pdfToolbox profile can contain the followiing processes
This document decscribed how to use pdfToolbox profiles with variables.
see the following article from callas: https://help.callassoftware.com/m/pdftoolbox/l/638412-variables-and-javascript-variables-in-general
radixPreflight comes with a set of predefined preflight profiles. One of these profiles are designed to demonstrate the usage of variables.
The path to this profile is: Profiles/variableChecksAndFixup.kfpx - to be used in the profilePath object of the byLink payload
When creating variables, we recommend to use meaningful varibale names. We use a mix of prefixes and custom ids in provided profiles for easier readability. If a variable is not provided during a call of pdfToolbox, the defined default value will be used.
NAME - defines the name of the check or fixup
DESC - defines the long description of a check or fixup
ONOFF - de/activates a check or fixup - possible values are 0 (OFF) or 1 (ON)
SEVERITY - defines the severity of a check - possible values are 0 (no hit), 1 (INFO), 2 (WARNING) or 3 (ERROR)
VAR - defines additional variables of a check or fixup
the name of the our variables is build using the following part:
Variable name: PREFIX_customId_variableProperty
The variables defining names and descriptions are used for any created preflight reports. Make sure the values are defined in the required language of the report.
checks the page dimensions of every page - uses TrimBox (fallback: CropBox, MediaBox)
checks the total amount of pages
scales the PDF to the given size - uses TrimBox (fallback: CropBox, MediaBox)
ONOFF_scaleToFormatDynamic
NAME_scaleToFormatDynamic
VAR_scaleToFormatDynamic_long
VAR_scaleToFormatDynamic_short (define the value 0 for proportional scaling)
VAR_scaleToFormatDynamic_unit - mm|pt|inch|percent
VAR_scaleToFormatDynamic_scaleType - StretchToFit|FitFromOutsideProp|FitFromOutside|FitFromInside|FitFromInsideProp
for more information of the individual checks and fixups, please consult the pdfToolbox help page at help.callassoftware.com