Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Combining PDF's from multiple sources (flexible)' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Combining PDF's from multiple sources (flexible)
Authored by: maartensneep on Jun 04, '03 06:07:15PM

If you need more control on selecting pages, scaling, the order of pages, etc, and you have latex installed, I would advice you to take a look at the pdfpages package.

Example: you have four pdf-files (1.pdf, 2.pdf, 3.pdf and 4.pdf), each with about a dozen pages. You would like to copy page 5 from 4.pdf followed by pages 4 through 8 and 12 through 14 of 2.pdf, and close with page 1 of 3.pdf and 1.pdf. Here's how to do it:

\documentclass[letter]{article}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages=5]{4.pdf}
\includepdf[pages={4-8,12-14}]{2.pdf}
\includepdf[pages=1]{3.pdf}
\includepdf[pages=1]{1.pdf}
\end{document}

Of course you have all the tools available with LaTeX, and downloading ~60MB just to do this is overkill, but if you already have it, this is probably the most flexible method.

Maarten



[ Reply to This | # ]
Combining PDF's from multiple sources (flexible)
Authored by: maartensneep on Jun 04, '03 06:10:16PM

Oops, discovered a typo (despite the preview). The commands in my previous comment need to be prepended with a backslash (\): \begin{...}, \pdgpages[...]{...}

Sorry

Maarten



[ Reply to This | # ]