Re: [Catalyst] generating and redirecting to pdfs [OT]

2009-10-27 Thread Richard Jones
Steve Rippl wrote: On Mon, 2009-10-26 at 18:49 -0400, hkcl...@gmail.com wrote: [..] Thanks for the input. I came across Catalyst::View::PDF::API2 but couldn't get that to work for some reason. I hadn't tried ..PDF::Reuse but right now HTML::HTMLDoc is working pretty well for me. Just as

Re: [Catalyst] generating and redirecting to pdfs

2009-10-26 Thread hkclark
On Tue, Oct 20, 2009 at 6:25 PM, Steve Rippl rip...@woodlandschools.orgwrote: Hi, I'm using TT for my View templates, and I'm experimenting with Template::Plugin::Latex for generating pdf reports. Now I'm generating pdfs (which is nice!) but not redirecting to them at the end, so I suspect

Re: [Catalyst] generating and redirecting to pdfs

2009-10-26 Thread Steve Rippl
On Mon, 2009-10-26 at 18:49 -0400, hkcl...@gmail.com wrote: Hi Steve, It sounds like you probably want to stick with something that's specific to LaTeX, so this may be of no help for you, but I thought I would pass it along just in case. I have recently used Jon Allen's

Re: [Catalyst] generating and redirecting to pdfs

2009-10-23 Thread Steve Rippl
On Wed, 2009-10-21 at 09:42 +1000, Jason Galea wrote: my $doc = HTML::HTMLDoc-new( 'mode' = 'file', 'tmpdir' = $self-config-{tmp_dir} ); $doc-set_page_size($self-config-{page_size}); $doc-set_header(@{$self-config-{header}}); $doc-set_footer(@{$self-config-{footer}});

Re: [Catalyst] generating and redirecting to pdfs

2009-10-23 Thread Jason Galea
On Sat, Oct 24, 2009 at 12:23 AM, Steve Rippl rip...@woodlandschools.orgwrote: Thanks for this! I did get this working, the only change I seemed to have to make was $c-response-content_type('application/pdf'); In order to get my browser to open it using a pdf reader (with 'text/pdf' it

Re: [Catalyst] generating and redirecting to pdfs

2009-10-21 Thread Moritz Onken
Am 21.10.2009 um 00:25 schrieb Steve Rippl: Hi, I'm using TT for my View templates, and I'm experimenting with Template::Plugin::Latex for generating pdf reports. Now I'm generating pdfs (which is nice!) but not redirecting to them at the end, so I suspect I'm using the wrong approach.

Re: [Catalyst] generating and redirecting to pdfs

2009-10-20 Thread Jason Galea
Hi Steve, not sure if you can gleen anything from this but I recently set myself up to produce PDFs from basic HTML produced by TT. I created a view that processes a TT template then converts to PDF using HTML::Doc and shoves it as a string straight to $c-response-body. I'm pretty happy with the