jonnyfolk has asked for the wisdom of the Perl Monks concerning the following question:
Update: I used the following code to achieve this:#!/usr/bin/perl # pdf-filler-test.pl use strict; use warnings; use CAM::PDF; # my $infile = 'input.pdf'; my $outfile = 'output.pdf'; my $pdf = CAM::PDF->new($infile) or die 'wtf'; my @FIELDS = $pdf->getFormFieldList(); # foreach ( @FIELDS ) { my $fieldnum = $_; $pdf->fillFormFields($_ => $fieldnum); } $pdf->cleanoutput($outfile);
$pdf->clearAnnotations(); $pdf->cleanoutput($outfile);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: converting pdf form to pdf document
by zentara (Cardinal) on May 30, 2008 at 18:22 UTC | |
by jonnyfolk (Vicar) on May 31, 2008 at 12:57 UTC | |
|
Re: converting pdf form to pdf document
by almut (Canon) on May 30, 2008 at 20:45 UTC |