To be able to access this integration you must have your "Base API URL", "Username" and "Password" which will be provided by PDF Emailer when connecting with them,
Please take note that the only way to use Optional Variables and Request Body Payload JSON the optional "Use Custom Rip Processes" slider needs to be enabled. By doing so the "Custom Rip Processes" field will appear like the below screenshot and a JSON example can be added.
"VAR_outlineObject_adjustSize" - Using this variable allows for options to subtract (negative values) or add to (positive values) to a PDF pages geometry box. Entering "-4" will result in a files shape being made smaller by 4 units on all sides.
"VAR_outlineObject_colorValueBlack" - This variable will adjust the colour of any Black elements of the PDF file by either a negative or positive value.
"VAR_outlineObject_colorValueCyan" - This variable will adjust the colour of any Cyan elements of the PDF file by either a negative or positive value.
"VAR_outlineObject_colorValueMagenta" - This variable will adjust the colour of any Magenta elements of the PDF file by either a negative or positive value.
"VAR_outlineObject_colorValueYellow" - This variable will adjust the colour of any Yellow elements of the PDF file by either a negative or positive value.
"VAR_outlineObject_curveOptimizationError" - A maximum delta will be allowed between pixel perfect tracing and curve optimization. A value of 0.2 is recommended by PDF toolbox as it will allow for efficient curves within the files, any values great than 1 would not be helpful.
"VAR_outlineObject_curveSmoothness" - This can be used to determine the "Curve Smoothness" needed within the PDF file. A value of 1 is recommended here as using a 0 value will make the PDF files appear jagged due to tracing
"VAR_outlineObject_despeckle" - Adding a value here will apply despeckling to the files between the pixels of different colours on the files.
"VAR_outlineObject_lineWidth" - This attribute determines the line width of files.
"VAR_outlineObject_optimizeCurves" - This makes it possible for the curve optimization to be enabled or disabled.
"VAR_outlineObject_reduceToOuterBoarders" - If a negative or positive value is required users can input a value to reduce the size of the outer boarders of a file.
"VAR_outlineObject_renderResolution" - Users can set a value here for the rendering resolution they wish to receive on all files downloaded from PDF Toolbox. The value that need adding here need to be PPI (pixels per inch) so if 1200 PPI was set their would be 1200 pixels per inch of the file.
"VAR_outlineObject_spotColorName" - This attribute makes it possible to create rendered pages based on any objects with a matching colour that has been filtered in this search. For examples users could set the spot colour to orange and the tracing would only happen based off of when the file shows only orange text.
"VAR_outlineObject_thresholdLightness" - Users can enter a value here to amend the threshold of lightness on the files.
"VAR_outlineObject_unit" - This field can be set to adjust the size unit of the files.
Here is an example of the Request Body Payload JSON which will be received. Please note this example includes some of the optional variables documented above.
{
"resources":[
{
"resourceId":"inputfile",
"uri":"{{ artworkUrl }}",
"direction":"input",
"usage":"original"
},
{
"resourceId":"childInputFile1",
"uri":"process://$parent/processed/0",
"direction":"input",
"usage":"original"
}
],
"processes": [
{
"name": "profile",
"priority": 100,
"customId": "one",
"children": [
{
"customId": "two"
}
],
"resourceRefs": [
"inputfile",
"outputfile"
],
"data": {
"reports": [
{
"type": "TEMPLATE",
"templatePath": {
"base": "$common",
"name": "Overview_STD_calibrate"
},
"name": "$originalName_Übersicht.pdf"
},
{
"type": "XSLT",
"templatePath": {
"base": "$common",
"name": "Reports/pi4_2_json.xslt"
}
}
],
"options": [
"novariables"
],
"arguments": [
{
"language": "en"
}
],
"profilePath": {
"base": "/root/data/common/kornit/",
"name": "outlineObject_applyClipMask.kfpx"
},
"variables": [
{
"VAR_outlineObject_spotColorName": "Cutcontur"
},
{
"VAR_applyClipMask_nameSpotColor": "Cutcontur"
},
{
"VAR_outlineObject_thresholdLightness": 0.99
},
{
"VAR_outlineObject_adjustSize": 0
},
{
"VAR_outlineObject_colorValueCyan": 0
},
{
"VAR_outlineObject_colorValueMagenta": 100
},
{
"VAR_outlineObject_colorValueYellow": 0
},
{
"VAR_outlineObject_colorValueBlack": 0
},
{
"VAR_outlineObject_lineWidth": 1
}
]
}
},
{
"name": "saveasimg",
"customId": "two",
"data": {
"arguments": [
{
"imgformat": "PNG"
},
{
"colorspace": "RGBA"
},
{
"resolution": "200"
}
]
},
"resourceRefs": [
"childInputFile1"
]
}
]
}