If I get a PDF file from some one I like to convert it into a booklet. I use a short script showed down below.
It works most of the time. How ever some times I get documents which have some pages in landscape. These pages aren't rotated but just shrunk (till A6). How can I rotated these pages. The landscape pages are randomly trough the document.
Code: Select all
\documentclass[a4paper]{article}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage[final]{pdfpages}
\begin{document}
\includepdf[pages=
% {1,{},-}, % blank after frontpage, than the hole document start with the frontpage
% {1,{}, 1,{}, -}, % blank after frontpage double frontpage, than the hole document start with the frontpage
% {1,{},2-}, % blank after frontpage, than the rest
- % All
% {1,{},98-127}, % front page with part of document
% nup=1x2,
landscape,
% booklet=true, % make a booklet max 36 page than use signature
signature=28, % Page per packet, divisible by 4 max 40
frame=true, % frame around page
delta=0 45 % offset (0 30-45 for binding)
]{document.pdf}
\end{document}