Expand my Community achievements bar.

Set name of output file with the input xml name

Avatar

Former Community Member

Hi guys,

I'm trying to do this,

I have an input file, a xml file in the generatedPDFoutput activity, and when i put the file in the watch folder it returns me a pdf file. I want to set the name of the output file as the name of the input xml file. I want to have the same name as the input file. Otherwise if i deliver many files in the watch folder, i only get one file because it overwrites the other files and i only get an output001.pdf.

Example: My input xml = test.xml

               My outputfile = test.pdf

               My input xml = test1.xml               

               My outputfile = test1.pdf

               My input xml = test2.xml               

               My outputfile = test2.pdf 

Regards.

Mancini.

1 Reply

Avatar

Level 10

In the output variable section of the end point configuration use %F.pdf. This will give your pdf the same name as the input file. %E could give you the extension as well.

Jasmin.