CAM-PDF - fillFormFields - CAM::PDF

Posted on Wed Aug 24 12:25:31 2005 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);
Write a response