Catalyst-View-PDFBoxer
view release on metacpan or search on metacpan
---
abstract: 'Runs view output through PDF::Boxer and sets response content-type if not already set.'
author:
- 'Jason Galea <lecstor@cpan.org>'
build_requires:
Catalyst: 0
Catalyst::Controller: 0
Catalyst::View::TT: 0
FindBin: 0
Moose: 0
Path::Class: 0
Test::More: 0
Makefile.PL view on Meta::CPAN
use strict;
use warnings;
use ExtUtils::MakeMaker 6.30;
my %WriteMakefileArgs = (
"ABSTRACT" => "Runs view output through PDF::Boxer and sets response content-type if not already set.",
"AUTHOR" => "Jason Galea <lecstor\@cpan.org>",
"BUILD_REQUIRES" => {
"Catalyst" => 0,
"Catalyst::Controller" => 0,
"Catalyst::View::TT" => 0,
"FindBin" => 0,
"Moose" => 0,
"Path::Class" => 0,
"Test::More" => 0,
"base" => 0,
Catalyst-View-PDFBoxer
Runs view output through PDF::Boxer and sets response content-type if not already set.
INSTALLATION
To install this module, run the following commands:
perl Makefile.PL
make
make test
make install
lib/Catalyst/View/PDFBoxer.pm view on Meta::CPAN
package Catalyst::View::PDFBoxer;
{
$Catalyst::View::PDFBoxer::VERSION = '0.001';
}
use Moose::Role;
# ABSTRACT: Runs view output through PDF::Boxer and sets response content-type if not already set.
use PDF::Boxer 0.003;
use PDF::Boxer::SpecParser;
use namespace::clean -except => 'meta';
requires 'process';
before process => sub {
my ($self, $c) = @_;
lib/Catalyst/View/PDFBoxer.pm view on Meta::CPAN
};
1;
=pod
=head1 NAME
Catalyst::View::PDFBoxer - Runs view output through PDF::Boxer and sets response content-type if not already set.
=head1 VERSION
version 0.001
=head1 SYNOPSIS
package MyApp::View::PDFBoxer;
use Moose;
lib/Catalyst/View/PDFBoxer.pm view on Meta::CPAN
extends qw/Catalyst::View::TT/;
with qw/Catalyst::View::PDFBoxer/;
1;
=head1 DESCRIPTION
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.
=head1 METHOD MODIFIERS
=head2 before process
Sets content-type to 'application/pdf; charset=utf-8' if not already set.
=head2 after process
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.
=head1 SEE ALSO
=over 4
( run in 1.030 second using v1.01-cache-2.11-cpan-524268b4103 )