This question is kind of close: pdfpages rotate odd pages 180º but, what I'm trying to achieve is different: I actually want 4 pages per page, i.e. nup=2x2
, but I want the top two to be rotated 180 degrees.
I've read the documentation of pdfpages
, but there doesn't seem to be a way to apply transformation to individual pages. I also tried to include pages one-by-one, and then rotate the ones I need, but, unfortunately, pdfpages puts them each on its own page, and I don't see a way to override this behavior.
The example layout I'm trying to achieve (for a booklet that is 8 pages long, printed on two sides):
| 1 | 8 |
|---|---|
| 4 | 5 |
| 3 | 6 |
|---|---|
| 2 | 7 |
Pages 1, 8, 3, 6 need to be rotated 180 degrees.
(Unfortunately, my printer doesn't allow me specifying this kind of layout in the settings dialog, so I need to craft this by hand).
PS. I tagged this "graphics" because another approach I tried was to use includegraphics
, but I couldn't figure out a way to extract pages from the PDF I have.
Here's my minimal example:
\documentclass{article}
\usepackage{pdfpages}
\begin{document}
%% signature=8,landscape
\includepdf[pages={1-8},nup=2x2]{booklet.pdf}
\end{document}
booklet.pdf
can be any PDF with at least 8 pages.
PPS. The resulting page needs to be a portrait: it is first folded on the long side, and then on the short side, but the order of folding can be changed, if you want to make it horizontal.
I kind of almost made it work like this:
\documentclass{article}
\usepackage{graphicx}
\usepackage[a4paper, margin=0pt]{geometry}
\begin{document}
\begin{picture}(595,842)(18,0)
\put(0,842){\includegraphics[page=1,angle=180]{booklet.pdf}}
\put(298,842){\includegraphics[page=8,angle=180]{booklet.pdf}}
\put(0,0){\includegraphics[page=4]{booklet.pdf}}
\put(298,0){\includegraphics[page=5]{booklet.pdf}}
\end{picture}
\end{document}
Things I don't understand is: why do I need to move the picture 18 points to the left, in order for it to fit the paper exactly.
\noindent\begin{picture}...