2022.2

Table Of Contents
l
Adatamappingconfiguration,ifthedocumentsshouldcontainvariabledatathatisextracted
fromsomedatasource.(See"Creatinganewdatamappingconfiguration"onpage200.)
l
AJobCreationPreset.(See"JobCreationPresetsWizard"onpage1069.)AJobCreationPre-
setdefineswheretheoutputgoesandmakesitpossibletofilterandsortrecords,groupdoc-
uments,andaddmetadata.
l
AnOutputCreationPreset.(See"OutputCreationPresetsWizard"onpage1084.)AnOutput
CreationPresetcansplitaprintjobintosmallerprintjobs,andsetprintingoptionssuchasbind-
ing,OMRmarkingsandthelike.
AllofthesefilesaremadewiththeDesignerandneedtobesenttotheOLConnectserverbeforeusing
theminaflow;see"OLConnectresourcesinNode-RED"onpage183.
An OL Connect preview PDF flow in Node-RED
ThistopicgivesanoverviewofthenodesandfilesthatareusedinaOLConnectPDFpreviewflowin
Node-RED.
AneasywaytocreatesomeexamplefilestoworkwithistouseaSampleProject.Therearetwo
SampleProjectsthatcreateasampleprintproject;see"SampleProjects"onpage918.ForaPDFpre-
viewflowinNode-REDyouwouldusethetemplateandpossiblythedatamappingconfiguration;you
wouldnotusetheWorkflowconfigurationfile.
The structure of a preview PDF flow
Servingapreviewtoabrowser
Typically,aPDFpreviewflowconsistsofatleastthreenodes:anhttp innodethatreceivesthe
request,thepreview pdfnodewhichisoneofthe"OLConnectnodes"onpage182,andthehttp
responsenodetoservethepreview.
Thehttp inandhttp responsenodesarestandardnodes.See"Node-RED:nodesandcommontech-
niques"onpage184.
TheHTTP innodewillpassanyqueryparametersviathepayloadasJSONdata.Queryparameters
arekey/valuepairsattachedtotheendofanURL.ThefirstparameterisappendedtotheURLusinga
?(questionmark).Iftherearemultipleparameters,an&(ampersand)isaddedinbetweenthem.
Forexample:http://localhost:1881/hello?first=John&last=Doe.
Thepreview pdfnodeacceptsJSONdataprovidedviathemsg.payloadproperty.Notethatinorder
tomergethedatawithatemplate,theparameternamesmustmatchfieldnamesinthetemplate'sdata
model.
Thetemplatetousecanbeconfiguredinthepreview pdfnodeorpassedviathemsg.templateprop-
erty.(See:"Settingandmovingmsgproperties"onpage188.)
Page 194