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$_.$/} _______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/