PeterPerl2011 has asked for the wisdom of the Perl Monks concerning the following question:

I have code that successfully populates fields in a pdf from a database, using CAM::PDF. However, the text is invisible. That is, when you open the output pdf, the fields appear to be blank. If you click in a field, you see the text that should be there. When you click away, the text disappears again. The text only appears in the field with cursor.

Anyone else ever see that?

my $pdf = CAM::PDF->new($file); $pdf->fillFormFields(%form); $pdf->cleanoutput($outfile);

Replies are listed 'Best First'.
Re: CAM::PDF populating form fields
by Laurent_R (Canon) on May 23, 2015 at 11:07 UTC
    I do not know this module, nor do I know about the PDF format, but a quick look at the documentation shows that the fillFormFields method that you use makes it possible to change the background color. I haven't tested it. But maybe this can help, even if it is obviously not the best solution.