[Melbourne-pm] PDF::API2

Myf White myfwhite at gmail.com
Tue Mar 19 05:41:48 PDT 2013


I have encountered this problem before. I also only needed one single
layout, and would have preferred a templating tool, but I ended up writing
a module which used PDF::Table and passing all of my data to that. It
worked well for me, because a) the data was suitable for tables and b) I
was gonna need a module to wrap it anyway for various reasons. Not sure if
it would suit your layout requirements.

Kind Regards,
Myf White

*Phone: *0413 757 052*
Email:* myfwhite at gmail.com


On Tue, Mar 19, 2013 at 11:27 PM, Andrew Dent <andrew_dent at dentaur.com>wrote:

> Thanks, ****
>
> 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.****
>
> https://code.google.com/p/wkhtmltopdf/****
>
> ** **
>
> 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.****
>
> ** **
>
> Ben****
>
> ** **
>
> ** **
>
> On 19 March 2013 11:22, Andrew Dent <andrew_dent at dentaur.com> wrote:****
>
> Hi****
>
>  ****
>
> 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. ****
>
>  ****
>
> Cheers****
>
>  ****
>
> Andrew****
>
>
> _______________________________________________
> Melbourne-pm mailing list
> Melbourne-pm at pm.org
> http://mail.pm.org/mailman/listinfo/melbourne-pm****
>
> ** **
>
> _______________________________________________
> Melbourne-pm mailing list
> Melbourne-pm at pm.org
> http://mail.pm.org/mailman/listinfo/melbourne-pm
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/melbourne-pm/attachments/20130319/c36d0b4a/attachment.html>


More information about the Melbourne-pm mailing list