To edit and copy file :
JavaScript
{"Name": "FileToNAS",
"Autostart": false,
"Trigger": {
"Type": "File",
"Name": "Incoming",
"Parameters": {
"Pool": "D:\\Poolpdf",
"Filter": "*.*",
"NewName": "Invoice_1_{{Funcs.now(\"yyyy-MM-dd HH-mm\")}}.pdf"
}
},
"Actions": [
{
"Type": "PdfEditor",
"Name": "ShowcaseExample",
"Parameters": {
"Source": "{{Trigger.Response.Results.first.FilePath}}",
"Operations": [
{
"op": "overlayPdf",
"path": "D:\\pdf\\gg.pdf",
"pages": "1",
"range": "1"
},
{
"op": "canvas",
"pages": "~",
"canvas": [
{
"Shape": "PageNumber",
"Position": "530,20",
"Font": "Helvetica",
"FontSize": 10,
"Color": "0,0,50,0.8",
"Format": "Page {0}"
},
{
"Shape": "Now",
"Position": "20,20",
"Font": "Helvetica",
"FontSize": 9,
"Color": "80,80,80,0.7",
"Format": "Generated at: yyyy-MM-dd HH:mm"
},
{
"Shape": "Line",
"Color": "120,120,120,0.6",
"LineWidth": 0.5,
"From": "20,35",
"To": "575,35"
},
{
"Shape": "Text",
"Text": "RUNOS CONFIDENTIAL",
"Font": "Helvetica-Bold",
"FontSize": 60,
"Color": "150,0,0,0.07",
"Align": "center",
"Position": "300,400",
"Rotate": 35,
"Layer": "before"
},
{
"Shape": "Rect",
"Pages": "1",
"Position": "30,750",
"Size": "550,60",
"Fill": "230,230,230,1",
"Color": "18,180,10,1",
"LineWidth": 1
},
{
"Shape": "Text",
"Pages": "1",
"Position": "50,770",
"Text": "Systemberg GmbH – ddddddd Document Processing",
"Font": "Helvetica",
"FontSize": 18,
"Color": "80,20,20,1"
},
{
"Shape": "QR",
"Pages": "1",
"Text": "Dldar",
"Position": "500,755",
"ScaleXY": "120,120"
},
{
"Shape": "Stamp",
"Pages": "1",
"Preset": "APPROVED",
"Position": "410,700"
}
]
}
]
}
},
{
"Type": "SMB",
"Name": "CopyFile",
"TimeoutSeconds": 90,
"Parameters": {
"Task": "Copy",
"Source": "{{Trigger.Response.Results.first.FilePath}}",
"Destination": "D:\\smbpdf",
"Overwrite": true
}
}
]
}