Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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.

Comment on Mechanize PDFs?
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 about the Monastery: (6)
As of 2015-11-25 22:40 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (692 votes), past polls