[Catalyst] How create a PDF report?

Steve Atkins steve at blighty.com
Thu Jun 8 17:50:57 CEST 2006


On Jun 8, 2006, at 6:31 AM, Toby Corkindale wrote:

> Christian Sánchez wrote:
>> Hi, I'm been using Catalyst recently to make a little application and
>> I want to create a PDF report, I have it using TT, Is there a way to
>> make it in PDF format?. I was reading the documentation but I didn't
>> found (or maybe didn't see ) something about that, I also search in
>> CPAN but I didn't see some module or plugin for this. How can I do
>> this? Is there a module or documentation about this?.
>>
>> Thanks.
>>
>
> One option is to make an alternative TT template that outputs XSL-FO*,
> and then use Apache FOP to transform that into PDF. That works quite
> well and produces nice PDFs, but might be a bit heavy-weight if you're
> only looking to make one thing.
>
> [*: Or, output XML, and then do an XSLT->XSL-FO transformation  
> prior to
> continuing with FOP.]

I'm doing this from perl using XML::ApacheFOP, which uses Java.pm to
communicate between perl and a persistent jvm instance and it works
very, very nicely. FOP allows embedded images in SVG as well as vector
formats, so it'll do basic graphs nicely too.

Cheers,
   Steve




More information about the Catalyst mailing list