GeneralLatex Print Two Source Pages to Single Page

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
godtripp
Posts: 1
Joined: Wed Dec 15, 2010 11:10 pm

Latex Print Two Source Pages to Single Page

Post by godtripp »

I'm new to latex and need to get this done ASAP.

I have 2 pdf files each with 40 pages.
Each of these files is printed in landscape.

I need to somehow take each page of these pdf files, and print them both on the same page in portrait.

Anyone can help me or tell me if it's not even possible etc?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Latex Print Two Source Pages to Single Page

Post by frabjous »

You should be able to do this with the pdfpages package.

Suppose the PDFs you already have are called input1.pdf and input2.pdf. If they're in landscape, you can use the package to include them in a single portrait PDF, two pages per page, on over the other, like this:

Code: Select all

\documentclass{article}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages=-,nup={1x2}]{input1.pdf}
\includepdf[pages=-,nup={1x2}]{input2.pdf}
\end{document}
That'll give you the first page having pages 1 and 2 of input1.pdf and the next having pages 3 and 4 of input1.pdf, and so on until input1.pdf is done and then move on to input2.pdf. It gets a little more complicated if you need to intersperse them with the output page 1 having page 1 from each document, then having page 2 from each document on page 2, etc., then it gets more complicated. You could do something like:

Code: Select all

\includepdfmerge[nup=1x2]{input1.pdf, 1, input2.pdf, 1, input1.pdf, 2, input2.pdf, 2, ... [etc] }
You can try to automate this, but it might be rather involved.
Post Reply