Posted on 2005-08-24 09:25:31-07 by bommelmann
fillFormFields - CAM::PDF
I fill some form fields of a template pdf and save it as a new pdf. But when I open the outfile in the AcrobatReader I see the filled values *only when I click* the certain field. When I click the next field, the former field value disappears. The only way to keep the value in place is to add some character to it. Can somebody help me to fill the fields for making them visible and printable while opening the outfile? Here is the code:
use CAM::PDF; $infile = "eingabe.pdf"; $outfile = "ausgabe.pdf"; @fieldarray = ( "lastname", "Puvogel", "firstname", "Walter" ); $pdf = CAM::PDF->new($infile); $pdf->fillFormFields(@fieldarray); $pdf->cleansave(); $pdf->cleanoutput($outfile);
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.