[Catalyst] Should I create a new view for rendering a pdf in
browser?
Thomas Klausner
domm at cpan.org
Thu Nov 10 07:09:01 GMT 2011
Hi!
On Wed, Nov 09, 2011 at 03:59:50PM +0100, Jens Gassmann wrote:
> I use Catalyst::View::Wkhtmltopdf - maybe Prince is better, but it is
> not open source like wkhtml. Also Catalyst::View::Wkhtmltopdf supports
> Template Toolkit and could render your Templates without much
> modifications.
If you don't want to use an external binary, you could also use Webkit
directly via Gtk3::Webkit though I'm not sure how stable / performant
this is. Emmanuel gave a talk about this last weekend during the Twin
City Perl Workshop:
http://conferences.yapceurope.org/tcpw2011/talk/3836
Here's his script to take a screenshot in various formats:
https://github.com/potyl/Webkit/blob/master/screenshot.pl
I probably wouldn't embed this directly into Catalyst, but set up a
seperate service, so maybe just using wkhtmltopdf is in fact simpler...
Greetings,
domm
--
#!/usr/bin/perl http://domm.plix.at
for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}
More information about the Catalyst
mailing list