Hi I am looking for some assistance with this api call. /api/distribution/v1/submit.
Curious if anyone has ever tried to do anything like this before or if it is possible.
The need is for the ability to have the print targets to be printed in sequential order.
These are going to the same printer but they are separate trays in the printer so they are set up in as separate printers in IDM.
In the following example I have below I need to make sure it prints from the printerTray1 target before the printerTray2target.
If I do an email job it does indeed email me the attachments in the correct order. But when I print them like this they will often get shuffled around.
Would be curious if anyone has any thoughts on this, thanks
{
"input": [
{
"type": "generate",
"filename": "file1.pdf",
"data": {
"type": "data",
"filename": "file1.xml",
"base64": "file1Base64Here"
},
"template": {
"type": "xquery",
"xquery": "/SX_Form_Templates[@Template_Name="FileOneTemplate"]"
},
"isPdfA": false
},
{
"type": "generate",
"filename": "file2.pdf",
"data": {
"type": "data",
"filename": "file2.xml",
"base64": "file2Base64Here"
},
"template": {
"type": "xquery",
"xquery": "/SX_Form_Templates[@Template_Name="FileTwoTemplate"]"
},
"isPdfA": false
}
],
"targets": [
{
"type": "print",
"printerId": "printerTray1",
"noOfCopies": 1,
"resolution": 0,
"useRenderingHints": false,
"include": [
"file1.pdf"
]
},
{
"type": "print",
"printerId": "printerTray2",
"noOfCopies": 1,
"resolution": 0,
"useRenderingHints": false,
"include": [
"file2.pdf"
]
}
],
"batchId": "12345",
"largeJob": true
}