On Tue, Oct 20, 2009 at 6:25 PM, Steve Rippl <rip...@woodlandschools.org>wrote:
> 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. > > Right now I've added OUTPUT_PATH => 'root/tmp' to lib/WsdSis/View/TT.pm > and when I hit the /report/test it using the following template (without > a wrapper) > > [% > META no_wrapper = 1; > META title = 'Latex'; > -%] > [% USE Latex(output='example.pdf') -%] > [% FILTER latex %] > \documentclass[letterpaper]{article} > \begin{document} > ...LaTeX document... > \end{document} > [% END -%] > > which produces root/tmp/example.pdf but leaves me looking at a blank > page on the screen. I realize my view is supposed to provide the final > view and I've redirected that way to the pdf file, is there a quick way > to redirect to that or do I need a different approach (similar to the > Catalyst::View::Email::Template example in the book?). > > Any pointers would be much appreciated... > > Thanks, > Steve > > > -- > Steve Rippl > Technology Director > Woodland Public Schools > 360 225 9451 x326 > > 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 Catalyst::View::PDF::Reuse and found it to be excellent. It's great for situations where you want to have a fancy "background PDF" that you then want to superimpose text on top of. Jon also has a nice presentation on the package at: http://www.pennysarcade.co.uk/files/Creating_PDF_files_with_Catalyst.pdf Regards, Kennedy
_______________________________________________ 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/