in reply to Using CAM::PDF to change a form value

Taking a look at the documentation for CAM::PDF, it looks like a lot of those functions are labeled as being for internal use only. Maybe you could post some code so we could take a look at how you're trying to do this?
  • Comment on Re: Using CAM::PDF to change a form value

Replies are listed 'Best First'.
Re^2: Using CAM::PDF to change a form value
by gwhite (Friar) on Aug 27, 2007 at 18:58 UTC
    Extremely basic code
    #!/usr/bin/perl use strict; use CAM::PDF; my $pdf = CAM::PDF->new('input-form.pdf'); $pdf->fillFormFields( 'site' => 'newsitename'); $pdf->cleanoutput('changed-form.pdf'); print "Done\n";
    g_White
      Out of curiosity, have you tried calling output() separately?
      g_White, Did you figure out a solution? My form fields are supposed to be visible. I can open the new/modified/updated pdf in Adobe. I have to click on the field for the field data to become visible. I can also print out the form fields via printer options, but printing the whole document the updated/modified fields are always blank. The fields that have not been modified are fine and show up accordingly.