Injecting a PDF File Using WildCard and Switch XML Variables

Post Reply
ckellar
Newbie
Posts: 2
Joined: Thu Mar 24, 2022 6:43 pm

Injecting a PDF File Using WildCard and Switch XML Variables

Post by ckellar »

Screenshot 2023-08-03 at 1.21.58 PM.png
Screenshot 2023-08-03 at 1.21.58 PM.png (165.97 KiB) Viewed 36578 times
Have an XML file coming into and creating a folder structure and is picking up a specific pdf template to fill in the xml variables.
The XPath looks like... " /dn:CrystalReport/dn:Group[1]/dn:GroupHeader/dn:Section[1]/dn:Field[13]/dn:Value[1] "

Where is the best practice to actual get the data to show up on the pdf?

Tried Pitstop Server via action variable set
Would placing a link on the pdf work? If so is there a document on how to format for this?
Would adding a form to pdf work?

Just trying to pass the data from the xml pickup to the pdf file... Thanks in Advance!
freddyp
Advanced member
Posts: 1023
Joined: Thu Feb 09, 2012 3:53 pm

Re: Injecting a PDF File Using WildCard and Switch XML Variables

Post by freddyp »

You create a variable for each piece of text linking to the value in the XML. You create an Action List that uses those variables in an Action. That is about it.

Now something about the Action to use. You can use the Action "Add object" to place the text in a specific position with a specific font and a specific color. A better approach according to me is to place a placeholder text in the template, e.g. #NAME# and to use the Action "Find and replace text" where the "Find" is the placeholder text and the "Find" the variable that points to the value in the XML.

Another approach is to use the app "PDF Form": https://www.enfocus.com/en/appstore/product/pdf-form. Then you add form fields to the PDF template and you fill them with this app.
ckellar
Newbie
Posts: 2
Joined: Thu Mar 24, 2022 6:43 pm

Re: Injecting a PDF File Using WildCard and Switch XML Variables

Post by ckellar »

That works! Thanks again Freddy!
Arrinters
Newbie
Posts: 2
Joined: Fri Jun 02, 2023 8:00 pm

Re: Injecting a PDF File Using WildCard and Switch XML Variables

Post by Arrinters »

:D :D :D :D
Post Reply