Debian Codegraph @

README

raw
1 NAME
2 Catalyst::View::PDF::Reuse - Create PDF files from Catalyst using
3 Template Toolkit templates
4
5 VERSION
6 Version 0.01
7
8 SYNOPSIS
9 Create a PDF::Reuse view:
10
11 script/myapp_create.pl view PDF::Reuse PDF::Reuse
12
13 In MyApp.pm, add a configuration item for the template include path:
14
15 __PACKAGE__->config('View::PDF::Reuse' => {
16 INCLUDE_PATH => __PACKAGE__->path_to('root','templates')
17 });
18
19 In your controller:
20
21 $c->stash->{pdf_template} = 'hello_pdf.tt';
22 $c->forward('View::PDF::Reuse');
23
24 In root/templates/hello_pdf.tt:
25
26 [% pdf.prFont('Helvetica-Bold') %]
27 [% pdf.prFontSize(20) %]
28 [% pdf.prText(100,100,'Hello, World!') %]
29
30
31 INSTALLATION
32
33 To install this module, run the following commands:
34
35 perl Makefile.PL
36 make
37 make test
38 make install
39
40 SUPPORT AND DOCUMENTATION
41
42 After installing, you can find documentation for this module with the
43 perldoc command.
44
45 perldoc Catalyst::View::PDF::Reuse
46
47 You can also look for information at:
48
49 RT, CPAN's request tracker
50 http://rt.cpan.org/NoAuth/Bugs.html?Dist=Catalyst-View-PDF-Reuse
51
52 AnnoCPAN, Annotated CPAN documentation
53 http://annocpan.org/dist/Catalyst-View-PDF-Reuse
54
55 CPAN Ratings
56 http://cpanratings.perl.org/d/Catalyst-View-PDF-Reuse
57
58 Search CPAN
59 http://search.cpan.org/dist/Catalyst-View-PDF-Reuse
60
61
62 SEE ALSO
63
64 Penny's Arcade Open Source - http://www.pennysarcade.co.uk/opensource
65
66
67 COPYRIGHT AND LICENCE
68
69 Copyright (C) 2009 Penny's Arcade Limited
70
71 This program is free software; you can redistribute it and/or modify it
72 under the same terms as Perl itself.
73