[Melbourne-pm] PDF::API2

Andrew Dent andrew_dent at dentaur.com
Tue Mar 19 05:27:19 PDT 2013


For this project creating a HTML file and then converting that file to a PDF would be ok. I can delete the HTML file after the conversion. 

But the HTML to PDF tool needs to be available in Ubuntu 12.04 LTS Server. 

Unfortunately it doesn’t look like wkhtmltopdf is available for Ubuntu 12.04 LTS. 


There is only one type of PDF file to create, so I can bundle all the Perl code defining the layout of the PDF into a module. 

But it would be nice to have a template file defining the PDF layout that is separate to the code. 


From: Melbourne-pm [mailto:melbourne-pm-bounces+andrew_dent=dentaur.com at pm.org] On Behalf Of Ben Vinnerd
Sent: Tuesday, 19 March 2013 10:48 PM
To: Melbourne Perlmongers
Subject: Re: [Melbourne-pm] PDF::API2


Hi Andrew,


This might not be the answer you're looking for, but anyway...


I looked into PDF CPAN modules a few years ago and decided to use wkhtmltopdf instead.



It's great to generate PDF docs, and free. You just create an HTML page and run the wkhtmltopdf command.


Might be worth a look? Like I said though, might not be what you're looking for.





On 19 March 2013 11:22, Andrew Dent <andrew_dent at dentaur.com> wrote:



Is there a template module, or file that can be used with PDF::API2?

Or when PDF::API2 is used do people normally define the layout/style of the PDF file in their Perl code? 

I’ve looked in the documentation, and googled, but I can’t find anything. Maybe I missed it. L


In addition to PDF::API2, I looked at PDF::Template but it doesn’t look like it is maintained much anymore. 





Melbourne-pm mailing list
Melbourne-pm at pm.org


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/melbourne-pm/attachments/20130319/de839685/attachment.html>

More information about the Melbourne-pm mailing list