[Melbourne-pm] PDF::API2

Andrew McNaughton andrewmcnnz at gmail.com
Tue Mar 19 07:14:17 PDT 2013


You could think about an XSL-FO oriented approach, doing the actual
processing with something like Apache fop
(http://xmlgraphics.apache.org/fop/).  There's a perl module to talk to
it (XML::ApacheFOP).

This is going to be much more involved than going via HTML, and is most
likely overkill.  Depends on your requirements though.

Andrew


On 19/03/13 23:27, Andrew Dent 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
> <mailto: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 <mailto: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/20130320/84610c44/attachment.html>


More information about the Melbourne-pm mailing list