rotate PDFs from the Linux command line
ImageMagick's mogrify
tool can be used to rotate PDF documents.
The commands work the same as with any image file:
mogrify -rotate 270 document.pdf
Note, however, that manipulating a PDF in this way will result in loss of image quality. To get around this, specify a particular output density, such as follows:
mogrify -density 200 -rotate 270 document.pdf
References
- stackoverflow. "Convert PDF to image with high resolution"
- superuser. "Batch resize and compress PDF files"
View or Post Comments