NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Concatenating pdf documents (Score:1)
texexec --pdfarrange --result all.pdf file*.pdf
(or even using ghostscript
gs -q -sPAPERSIZE=a4 -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=output.pdf
*.pdf
)
If you want more control over importing certain pages you can use the pdfpages package in latex; just run the following file (call it all.tex or whatever) through latex:
\documentclass[letter]{article}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages=5]{me.pdf}
\includepdf[pages={12-14}]{you.pdf}
\includepdf[pages=4-8,12-14]{dog.pdf}
\includepdf[pages=1-]{boo.pdf}
\end{document}
That'll give you a pdf file all.pdf containing the obvious pages from the four constituents: page 5 only from me.pdf, pages 12-14 from you.pdf, pages 4-8 and 12-14 from dog.pdf and all pages from boo.pdf.
Cheers,
Paul
Reply to This