<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><br>
You could think about an XSL-FO oriented approach, doing the
actual processing with something like Apache fop
(<a class="moz-txt-link-freetext" href="http://xmlgraphics.apache.org/fop/">http://xmlgraphics.apache.org/fop/</a>). There's a perl module to
talk to it (XML::ApacheFOP).<br>
<br>
This is going to be much more involved than going via HTML, and is
most likely overkill. Depends on your requirements though.<br>
<br>
Andrew<br>
<br>
<br>
On 19/03/13 23:27, Andrew Dent wrote:<br>
</div>
<blockquote cite="mid:000301ce249d$2873dbb0$795b9310$@dentaur.com"
type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<div class="WordSection1">
<p class="MsoNormal"><span>Thanks, </span></p>
<p class="MsoNormal"><span>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. </span></p>
<p class="MsoNormal"><span>But the HTML to PDF tool needs to be
available in Ubuntu 12.04 LTS Server. </span></p>
<p class="MsoNormal"><span>Unfortunately it doesn’t look like
wkhtmltopdf is available for Ubuntu 12.04 LTS. </span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span>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. </span></p>
<p class="MsoNormal"><span>But it would be nice to have a
template file defining the PDF layout that is separate to
the code. </span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span
lang="EN-US"> Melbourne-pm
[<a class="moz-txt-link-freetext" href="mailto:melbourne-pm-bounces+andrew_dent=dentaur.com@pm.org">mailto:melbourne-pm-bounces+andrew_dent=dentaur.com@pm.org</a>]
<b>On Behalf Of </b>Ben Vinnerd<br>
<b>Sent:</b> Tuesday, 19 March 2013 10:48 PM<br>
<b>To:</b> Melbourne Perlmongers<br>
<b>Subject:</b> Re: [Melbourne-pm] PDF::API2</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Hi Andrew,</p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">This might not be the answer you're
looking for, but anyway...</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">I looked into PDF CPAN modules a few
years ago and decided to use wkhtmltopdf instead.</p>
</div>
<div>
<p class="MsoNormal"><a moz-do-not-send="true"
href="https://code.google.com/p/wkhtmltopdf/">https://code.google.com/p/wkhtmltopdf/</a></p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">It's great to generate PDF docs, and
free. You just create an HTML page and run the wkhtmltopdf
command.</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Might be worth a look? Like I said
though, might not be what you're looking for.</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Ben</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">On 19 March 2013 11:22, Andrew Dent <<a
moz-do-not-send="true"
href="mailto:andrew_dent@dentaur.com" target="_blank">andrew_dent@dentaur.com</a>>
wrote:</p>
<div>
<div>
<p class="MsoNormal">Hi</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Is there a template module, or file
that can be used with PDF::API2?</p>
<p class="MsoNormal">Or when PDF::API2 is used do people
normally define the layout/style of the PDF file in
their Perl code? </p>
<p class="MsoNormal">I’ve looked in the documentation, and
googled, but I can’t find anything. Maybe I missed it. <span>L</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">In addition to PDF::API2, I looked at
PDF::Template but it doesn’t look like it is maintained
much anymore. </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Cheers</p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span>Andrew</span></p>
</div>
</div>
<p class="MsoNormal"><br>
_______________________________________________<br>
Melbourne-pm mailing list<br>
<a moz-do-not-send="true" href="mailto:Melbourne-pm@pm.org">Melbourne-pm@pm.org</a><br>
<a moz-do-not-send="true"
href="http://mail.pm.org/mailman/listinfo/melbourne-pm"
target="_blank">http://mail.pm.org/mailman/listinfo/melbourne-pm</a></p>
</div>
<p class="MsoNormal"> </p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Melbourne-pm mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Melbourne-pm@pm.org">Melbourne-pm@pm.org</a>
<a class="moz-txt-link-freetext" href="http://mail.pm.org/mailman/listinfo/melbourne-pm">http://mail.pm.org/mailman/listinfo/melbourne-pm</a></pre>
</blockquote>
<br>
</body>
</html>