README
1PDF/Reuse version 0.39
2======================
3
4This module gives you a possibility to reuse PDF-files. You can use pages,
5images, fonts and Acrobat JavaScript from old PDF-files (if they
6were not encrypted), and rearrange the components, and add new graphics,
7texts etc.
8
9There is also support for graphics. In the tutorial there is a description of
10how to transform simple PDF-pages to graphic Perl objects with the help of
11programs based on this module.
12
13The module is fairly fast, so it should be possible to used it for mass
14production.
15
16Usage e.g. for a long list:
17
18 use PDF::Reuse;
19 use strict;
20
21 # Getting customer data in some way ...
22
23 my @custData = ( { firstName => 'Anders',
24 lastName => 'Wallberg' },
25 { firstName => 'Nils',
26 lastName => 'Versen' },
27 { firstName => 'Niclas',
28 lastName => 'Lindberg' },
29
30 # and 10000 more records
31
32 { firstName => 'Sten',
33 lastName => 'Wernlund' } );
34
35 prFile('myFile.pdf');
36
37 for my $customer (@custData)
38 { prForm('letter.pdf');
39 prText(50, 750, "Dear $customer->{'firstName'}");
40 # ...
41 prPage();
42 }
43 prEnd();
44
45
46
47INSTALLATION
48
49 perl Makefile.PL
50 make
51 make test
52 make install
53
54In a Windows environment you will probably meed nmake or dmake instead of make.
55(If you haven't got nmake, try to download it from Microsoft )
56
57DEPENDENCIES
58
59This module requires these other modules:
60
61 Carp
62 Compress::Zlib
63 Digest::MD5
64 Exporter
65 AutoLoader
66
67If you want to use true type fonts and non-Latin1 Unicode characters you also
68need theese optional modules
69
70 Font::TTF
71 Text::PDF::TTFont0 (Part of Text::PDF distribution)
72
73
74
75COPYRIGHT AND LICENCE
76
77Copyright (C) 2003 - 2004 Lars Lundberg, Solidez HB.
78Copyright (C) 2005 - 2007 Karin Lundberg. All rights reserved.
79Copyright (C) 2008 - 2010 Lars Lundberg, Solidez HB.
80Copyright (C) 2010 - 2016 Chris Nighswonger.
81
82This library is free software; you can redistribute it and/or modify
83it under the same terms as Perl itself.
84
85