Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: Filling PDF Form Checkboxesby Anonymous Monk |
on Jul 29, 2020 at 15:12 UTC ( [id://11119993]=note: print w/replies, xml ) | Need Help?? |
I have used following improved code to mark my checkbox in pdf #!/usr/bin/perl -w use strict; use CAM::PDF; my $pdf = CAM::PDF->new('tenant.pdf') or die "Could not open PDF ($!)!"; $pdf->getFormFieldList(); my $field ="Female"; my $ff_obj = $pdf->getFormField($field); $ff_obj->{value}->{value}->{AS}->{value} = "On"; $pdf->cleanoutput('afilled.pdf');
In Section
Seekers of Perl Wisdom
|
|