Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Mechanize PDFs?

by jgamble (Pilgrim)
on Dec 14, 2007 at 21:13 UTC ( #657119=perlquestion: print w/replies, xml ) Need Help??

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

Is there an equivalent of WWW::Mechanize for PDFs?

I'm looking for the ability to fill in the text boxes in forms found at The user will save the forms to her computer and fill them out there. Since another application will have the necessary information, it would be nice to just copy that over to the PDF automatically. But unless I haven't thought of the right search key (likely), I'm not seeing a module on CPAN to do it.

Note that I'm not creating a PDF from scratch, I am taking an existing PDF, filling in text boxes, and then printing it. Repeat as necessary. Yes, I know, but some things are required to be on paper.

Thank you.

Replies are listed 'Best First'.
Re: Mechanize PDFs?
by moklevat (Priest) on Dec 14, 2007 at 21:38 UTC
    You should take a look at CAM::PDF. It allows you to manipulate existing PDF's. Specifically, the fillFormFields() function may do what you want.

      This looks very good. Thanks, I'll start working with it.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://657119]
Approved by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2021-05-15 09:20 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (150 votes). Check out past polls.