TeX::AutoTeX::ConcatPDF - concatenate a list of PDF files
This documentation refers to TeX::AutoTeX::ConcatPDF version 0.9
use TeX::AutoTeX::ConcatPDF qw(concatenate_pdf);
stamp_pdf($pdfoutfile, $list_ref);
This module creates a PDF file which consists of the concatenation of the list of PDF files passed in.
There are many tools which provide similar functionality. Most of them seem to mangle annotations, in particular hyperlinks, in confusing ways.
The combination of pdflatex and pdfpages, which arXiv uses in production, does not carry forward hyperlinks, which is preferable to incorrect hyperlinks.
An easy alternative to the fairly involved procedure used here is a straightforward system call to ghostscript with appropriate arguments, e.g.
ghostscript
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=combined.pdf file1.pdf file2.pdf
with the mentioned drawbacks for the resulting file combined.pdf.
The single subroutine exported by this package is concatenate_pdf.
concatenate_pdf
concatenate_pdf takes 2 arguments, the name of a file to which the generated PDF file will be written, and a reference to a list, which contains the ordered list of PDF files to be concatenated.
croak and die
none
CAM::PDF
CAM::PDF sometimes chokes on large and/or complex PDF files.
Please report bugs to www-admin
Thorsten Schwander <schwande@cs.cornell.edu>
Copyright (c) 2008 - 2011 arxiv.org http://arxiv.org/help/contact
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install TeX::AutoTeX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TeX::AutoTeX
CPAN shell
perl -MCPAN -e shell install TeX::AutoTeX
For more information on module installation, please visit the detailed CPAN module installation guide.