Catalyst::View::PDFBoxer - Runs view output through PDF::Boxer and sets response content-type if not already set.
version 0.001
package MyApp::View::PDFBoxer; use Moose; use namespace::clean -except => 'meta'; extends qw/Catalyst::View::TT/; with qw/Catalyst::View::PDFBoxer/; 1;
This is a Role which takes the current $c->response->body, runs it through PDF::Boxer as it's "spec" file to get a PDF::API2 object. $c->response->body is then set to the stringified PDF and content-type is set accordingly.
Sets content-type to 'application/pdf; charset=utf-8' if not already set.
Takes the current $c->response->body, runs it through PDF::Boxer as it's "spec" file to get a PDF::API2 object. $c->response->body is then set to the stringified PDF.
PDF::Boxer - PDF generator used by this role.
Jason Galea <lecstor@cpan.org>
This software is copyright (c) 2011 by Jason Galea.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Catalyst::View::PDFBoxer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::View::PDFBoxer
CPAN shell
perl -MCPAN -e shell install Catalyst::View::PDFBoxer
For more information on module installation, please visit the detailed CPAN module installation guide.