2022.1

Table Of Contents
l An Output Creation Preset. (See "Output Creation Presets Wizard" on page1246.) An
Output Creation Preset can split a print job into smaller print jobs, and set printing options
such as binding, OMR markings and the like.
All of these files are made with the Designer and need to be sent to the OL Connect server
before using them in a flow; see "OL Connect resources in Node-RED" on page202.
An OL Connect preview PDF flow in Node-RED
This topic gives an overview of the nodes and files that are used in a OL Connect PDF preview
flow in Node-RED.
An easy way to create some example files to work with is to use a Sample Project. There are
two Sample Projects that create a sample print project; see "Sample Projects" on page1060.
For a PDF preview flow in Node-RED you would use the template and possibly the data
mapping configuration; you would not use the Workflow configuration file.
The structure of a preview PDF flow
Serving a preview to a browser
Typically, a PDF preview flow consists of at least three nodes: an http in node that receives the
request, the preview pdf node which is one of the "OL Connect nodes" on page200, and the
http response node to serve the preview.
The http in and http response nodes are standard nodes. See "Node-RED: nodes and
common techniques" on page204.
The HTTP in node will pass any query parameters via the payload as JSON data. Query
parameters are key/value pairs attached to the end of an URL. The first parameter is appended
to the URL using a ? (question mark). If there are multiple parameters, an & (ampersand) is
added in between them. For example: http://localhost:1881/hello?first=John&last=Doe.
The preview pdf node accepts JSON data provided via the msg.payload property. Note that in
order to merge the data with a template, the parameter names must match field names in the
template's data model.
The template to use can be configured in the preview pdf node or passed via the msg.template
property. (See: "Setting and moving msg properties" on page207.)
Page 215