Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

PerlModule for PDF Creation

by Poornima (Initiate)
on Mar 13, 2012 at 07:03 UTC ( [id://959254]=perlquestion: print w/replies, xml ) Need Help??

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

Hi PerlMonks, Can you please suggest the best perlmodule for creation of PDF File through the perl script?

Replies are listed 'Best First'.
Re: PerlModule for PDF Creation
by Corion (Patriarch) on Mar 13, 2012 at 08:20 UTC
Re: PerlModule for PDF Creation
by moritz (Cardinal) on Mar 13, 2012 at 07:08 UTC

    The best approach always depends on what exactly you need to do. I for one have good experiences with emitting LaTeX files from perl, and then running pdflatex to create PDF files from that. But of course it depends on your use case if that's a suitable approach for you.

    For example if you already have a PDF template and merely need to replace some text or images, other approaches might work better.

Re: PerlModule for PDF Creation
by Eliya (Vicar) on Mar 13, 2012 at 09:03 UTC

    PDF::API2 is a pretty mature Perl module for PDF creation — though it needs a bit of "getting used to" its docs.   However, as has already been said, what is best depends on your specific requirements...

Re: PerlModule for PDF Creation
by zwon (Abbot) on Mar 13, 2012 at 13:31 UTC

    On one of my previous jobs we used Cairo to generate PDFs, after falling into problems with PDF::API2 (I wouldn't recommend this one). It is very fast and has very moderate memory requirements, but it is a generic graphic library and lack support for many useful PDF features like indexes and links, so may not suit your needs. Also I had some positive experience with CAM::PDF.

Re: PerlModule for PDF Creation
by mendeepak (Scribe) on Mar 14, 2012 at 08:45 UTC

    PDF::Create is a simple pdf creator.If you need bit more complicated works to be done you can choose PDF::API2

Re: PerlModule for PDF Creation
by choroba (Cardinal) on Mar 14, 2012 at 09:58 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://959254]
Approved by moritz
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-03-29 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found