32

Recently I found out that I can't use Adobe Acrobat to rotate a multi-page pdf file by .70 degrees. So I have a regular PDF file (flat scan - no text) that I need to rotate.

But I've seen a hint that you can do it with LaTeX.

The example there isn't enough - it only does one page.

Can I do this with LaTex?

3 Answers 3

55

You can use pdfpages:

\documentclass{article}
\usepackage{pdfpages}

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

rotated pdf

9
  • 2
    PERFECT! That is so easy! You know, you can't even buy pdf software that will do this. Thanks for answering!
    – bgmCoder
    Mar 17, 2015 at 2:24
  • 3
    @BGM It's actually the same solution as the answer you linked to. pdfpages passes any keys it doesn't know off to the \includegraphics command by default. It can do other things, too, but here it is basically just being used as a wrapper for \includegraphics. (I used 30 degrees because I didn't think 0.70 degrees would show up very well in the screenshot ;).)
    – cfr
    Mar 17, 2015 at 2:31
  • 1
    That's so awesome! I spent hours already trying to rotate that pdf! The more I get into LaTeX the happier I become. Thanks again, cfr.
    – bgmCoder
    Mar 17, 2015 at 2:33
  • @BGM There is ''Adobe InDesign'', but that requires: making a new document of the required size, placing the PDF at 100% size to fit the document (corner to corner), anchoring your adjustments to the center, rotating, and exporting (which includes PDF compatibility and the other fun publication-level stuff). But I could also simplify to: make document of required size, place PDF, rotate around center, export. But if you mean a piece of software ''dedicated'' to rotating a PDF, I doubt you'll find one.
    – Cole Tobin
    Mar 17, 2015 at 3:41
  • 1
    @ColeJohnson Sounds very complicated ;).
    – cfr
    Mar 17, 2015 at 12:56
0

I used the following to rotate a .pdf file of one page.

\begin{figure}[h!]
 \centering
  \includegraphics[width=7.5cm, angle=-90]{graph.pdf}
\end{figure}
-10

If you save the pdf as an image (jpg) and use Microsoft Word you can rotate.

3
  • 12
    Hi and welcome, Converting the pdf to jpg will rasterize the graphic, loosing a huge amount of quality. Using Word cannot be the solution in a LaTeX based environment.
    – Johannes_B
    May 6, 2015 at 8:42
  • 2
    That won't do if the pdf is composed of multiple pages - and it scraps the fonts so that you can't copy text.
    – bgmCoder
    May 6, 2015 at 13:33
  • 1
    Word is bad. This is a TeX forum. Sep 28, 2021 at 18:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .