3

I have a 1000 page pdf that I'm trying to rotate the pages on. I can do this in InDesign but it would take forever, so I'm looking into tex.

Can this be done easily and how would I go about it?

I'm on a mac if it makes any difference and a total novice to tex. I have installed texbasic and TexWorks.

I came across this in my search:

\documentclass{article}
\usepackage{pdfpages}

\begin{document}
  \includepdf[pages={-},angle=30]{main}
\end{document}

I edited "30" to "20" to get the angle then I edited "main" to the document name of my pdf and it worked!

However it is exporting all the pages at US Letter size and scaling my artwork up to suit. I need it not to scale my artwork.

4

From the pdfpages documentation:

By default pages are scaled automatically. This can be suppressed with the noautoscale option. In combination with the scale option (from graphicx) the user has full control over the scaling process. Either true or false (or no value, which is equivalent to true). (Default: noautoscale=false)

So,

\documentclass{article}

\usepackage{pdfpages}

\begin{document}
  \includepdf[pages={-},angle=20,noautoscale]{main}
\end{document}

If you want opposite angles for odd and even, you can loop through the pages and include odd/even pages using a condition:

\documentclass{article}

\usepackage{pdfpages}

\begin{document}

\includepdf[pages={-},angle=\ifodd\value{page} 20\else -20\fi,noautoscale]{main}

\end{document}

Or, perhaps a little more verbose:

\documentclass{article}

\usepackage{multido,pdfpages}

\begin{document}

\multido{\i=1+1}{1000}{%
  \ifodd\i % \i is odd
    \includepdf[pages=\i,angle=20,noautoscale]{main}%
  \else % \i is even
    \includepdf[pages=\i,angle=-20,noautoscale]{main}%
  \fi
}

\end{document}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.