Stamping XML contents onto PDF
Posted: Mon May 11, 2026 7:10 pm
I'm trying to put some contents of an XML file onto a PDF using Switch and Pitstop Server Variable sets and action lists without much success.
My switch flow inputs zipped file with the xml and (x) number of PDFs inside. As of now I have a folder with all of the PDFs, and a sidecar XML that goes with each. It is my understanding that the Variable Set should be pointed at the XML file and from there we choose the relevant node in the XML <address>xyx</address> or <jobid>1234</jobID> etc. The Variable Definition should be "Job Ticket">"Text"(?) and the Variable Value is a selection to the XPath where the XML lives.
From there, you create an action list, enable variable names, then use a variable from your variable set. Fill out the font and coordinates and from here nothing happens. After I run my flow, it's coming up with 349 / PitStop Library error code 3504 “An error occurred while calculating the values of a required variable.”
Question - in the variable set, I'm choosing an xml that I created earlier in the flow. Could I be using an xml that has since been deleted in subsequent runs? Do I need to somehow create a template XML and just store that in a separate folder that's never deleted?
My switch flow inputs zipped file with the xml and (x) number of PDFs inside. As of now I have a folder with all of the PDFs, and a sidecar XML that goes with each. It is my understanding that the Variable Set should be pointed at the XML file and from there we choose the relevant node in the XML <address>xyx</address> or <jobid>1234</jobID> etc. The Variable Definition should be "Job Ticket">"Text"(?) and the Variable Value is a selection to the XPath where the XML lives.
From there, you create an action list, enable variable names, then use a variable from your variable set. Fill out the font and coordinates and from here nothing happens. After I run my flow, it's coming up with 349 / PitStop Library error code 3504 “An error occurred while calculating the values of a required variable.”
Question - in the variable set, I'm choosing an xml that I created earlier in the flow. Could I be using an xml that has since been deleted in subsequent runs? Do I need to somehow create a template XML and just store that in a separate folder that's never deleted?