Menu

Tree [60fcc2] master /
 History

HTTPS access


File Date Author Commit
 Reuse 2014-12-09 Chris Nighswonger Chris Nighswonger [630748] Adding license headers and other misc cleanup
 Util 2014-12-09 Chris Nighswonger Chris Nighswonger [60fcc2] More license headers and other misc cleanup
 Changes 2014-12-08 Chris Nighswonger Chris Nighswonger [5ab5cc] Updating revision history and README
 MANIFEST 2014-12-01 Chris Nighswonger Chris Nighswonger [4d0a72] Initial commit
 META.yml 2014-12-08 Chris Nighswonger Chris Nighswonger [c661ae] Bumping version number for 0.36 stable
 Makefile.PL 2014-12-02 Chris Nighswonger Chris Nighswonger [b2f58c] Updating for ver 0.36
 README 2014-12-08 Chris Nighswonger Chris Nighswonger [5ab5cc] Updating revision history and README
 Reuse.pm 2014-12-09 Chris Nighswonger Chris Nighswonger [e79dfe] B100788 Add missing empty line to POD to avoid ...
 test.pl 2014-12-01 Chris Nighswonger Chris Nighswonger [4d0a72] Initial commit

Read Me

PDF/Reuse version 0.36
======================

This module gives you a possibility to reuse PDF-files. You can use pages,
images, fonts and Acrobat JavaScript from old PDF-files (if they
were not encrypted), and rearrange the components, and add new graphics,
texts etc.

There is also support for graphics. In the tutorial there is a description of
how to transform simple PDF-pages to graphic Perl objects with the help of
programs based on this module.

The module is fairly fast, so it should be possible to used it for mass
production.

Usage e.g. for a long list:

   use PDF::Reuse;
   use strict;

   # Getting customer data in some way ...

   my @custData = ( { firstName => 'Anders',
                      lastName  => 'Wallberg' },
                    { firstName => 'Nils',
                      lastName  => 'Versen' },
                    { firstName => 'Niclas',
                      lastName  => 'Lindberg' },

                    # and 10000 more records

                    { firstName => 'Sten',
                      lastName  => 'Wernlund' } );

   prFile('myFile.pdf');

   for my $customer (@custData)
   {    prForm('letter.pdf');
        prText(50, 750, "Dear $customer->{'firstName'}");
        # ...
        prPage();
   }
   prEnd();



INSTALLATION

   perl Makefile.PL
   make
   make test
   make install

In a Windows environment you will probably meed nmake or dmake instead of make.
(If you haven't got nmake, try to download it from Microsoft )

DEPENDENCIES

This module requires these other modules:

  Carp
  Compress::Zlib
  Digest::MD5
  Exporter
  AutoLoader

If you want to use true type fonts and non-Latin1 Unicode characters you also
need theese optional modules

  Font::TTF
  Text::PDF::TTFont0  (Part of Text::PDF distribution)



COPYRIGHT AND LICENCE

Copyright (C) 2003 - 2004 Lars Lundberg, Solidez HB.
Copyright (C) 2005 - 2007 Karin Lundberg. All rights reserved.
Copyright (C) 2008 - 2010 Lars Lundberg, Solidez HB.
Copyright (C) 2010 - 2014 Chris Nighswonger.

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.