-
-
29 Jul 2014 13:57:43 UTC
- Distribution: MooseX-PDF
- Module version: 0.01
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (2)
- Testers (342 / 106 / 0)
- Kwalitee
Bus factor: 0- % Coverage
- License: artistic_2
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (6.67KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
MooseX::PDF - Create PDF files with Moose using Template Toolkit templates
DESCRIPTION
MooseX::PDF provides functionality to create PDF files using Template Toolkit templates. Given a template with PDF::Reuse directives, this module will process the template and return the raw PDF contents.
This scalar can then be written to file, or output via a streamed process, such as a web server.
SYNOPSIS
In your moose file do something like:
with 'MooseX::PDF'; $self->inc_path('/path/to/my/templates/folder/'); my $vars = { scalar => $test, array => \@array, hash => \%hash }; my $raw_pdf = $self->create_pdf('template_file',$vars);
ATTRIBUTES
SUBROUTINES/METHODS
create_pdf
Used to generate the raw pdf
AUTHOR
Hamid Afshar,
<hamster at cpan.org>
BUGS
Please report any bugs or feature requests to
bug-moosex-pdf-reuse at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooseX-PDF. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.LICENSE AND COPYRIGHT
Copyright 2013-2014 Hamid Afshar.
This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). You may obtain a copy of the full license at:
Module Install Instructions
To install MooseX::PDF, copy and paste the appropriate command in to your terminal.
cpanm MooseX::PDF
perl -MCPAN -e shell install MooseX::PDF
For more information on module installation, please visit the detailed CPAN module installation guide.