gwhite has asked for the wisdom of the Perl Monks concerning the following question:
I have a hidden form field in a PDF file, that contains a default value (a site ID), so when the form is submitted via email the default value is passed. What I need to do is write a little program that will change the default value of the hidden field to a different site ID (of which I have a couple of hundred) and save the PDF file with a new name (so it can be emailed to all the users at that site). CAM::PDF is the only module that I have been succesful with in accessing form values, but the hidden form field is giving me trouble as it won't let me override the default value.
I read the file in successfully, grab the form field object, set the value, and save the PDF file. When I open the newly saved PDF file it is the old default value, not the new value. I can use the same process and set visible form fields and they work OK. Does anyone have any suggestions that might help me get over the hump with this issue?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using CAM::PDF to change a form value
by starX (Chaplain) on Aug 27, 2007 at 18:05 UTC | |
by gwhite (Friar) on Aug 27, 2007 at 18:58 UTC | |
by starX (Chaplain) on Aug 27, 2007 at 21:14 UTC | |
by bonzo (Novice) on Feb 14, 2008 at 17:10 UTC |