PDF creation fails when variables are used
Posted: Wed Jun 01, 2016 2:41 pm
Hello
Here's my scenario:
I use an external HTML jobticket which eventually returns back to the connector with variables populated (I can see that they come through with the right values when I export the preview to a variable xml.
I want to test certain properties of the PDF against the values entered on the form.
One specific variable is the number of pages the user says he has vs the number of pages actually found in the PDF.
I want preflight to fail if the two numbers dont match, and pass if they do match.
I test the value of /ValueDescription/MF_9 from the xml file (type=number - i modified it in the xml, changed it back to text, etc, made no difference, against the actuall number of pages in the PDF - tried this with standard preflight Page tab, and through an Action list.
All of the above consistently gives me no error in spite of making errors on purpose (1 page PDF, 5 pages entered in jobticket) where i'd expect an error. PDF file creation also fails and yet the connector opens a browses dialog so that i can tell it where i want the pdf. then, next thing an error pop up telling me that it cannot copy the file because the file doesn't exist (in other words it cannot put the created PDF in it's chosen location because the original was never made.
I hope this all makes sense, I'm stumped. Can someone shed some light on the issue for me? Much appreciated.
Here's my scenario:
I use an external HTML jobticket which eventually returns back to the connector with variables populated (I can see that they come through with the right values when I export the preview to a variable xml.
I want to test certain properties of the PDF against the values entered on the form.
One specific variable is the number of pages the user says he has vs the number of pages actually found in the PDF.
I want preflight to fail if the two numbers dont match, and pass if they do match.
I test the value of /ValueDescription/MF_9 from the xml file (type=number - i modified it in the xml, changed it back to text, etc, made no difference, against the actuall number of pages in the PDF - tried this with standard preflight Page tab, and through an Action list.
All of the above consistently gives me no error in spite of making errors on purpose (1 page PDF, 5 pages entered in jobticket) where i'd expect an error. PDF file creation also fails and yet the connector opens a browses dialog so that i can tell it where i want the pdf. then, next thing an error pop up telling me that it cannot copy the file because the file doesn't exist (in other words it cannot put the created PDF in it's chosen location because the original was never made.
I hope this all makes sense, I'm stumped. Can someone shed some light on the issue for me? Much appreciated.