Lossless PDF rotation

is there a way to rotate a PDF 90 degrees losslessly using Python or using the command line?

I'm looking for a REAL rotation, not just adding "/ ROTATE 90" inside the PDF, because after that I need to send the PDF via Hylafax and it looks like it is ignoring those commands.

I tried to convert ImageMagick, but the quality of the resulting PDF is quite low.

(Python 2.6.2, Xubuntu 9.04)

Thanks for your attention!

+2


source to share


2 answers


The pdfjam package has a wrapper script pdf90

that pivots through pdflatex.



+3


source


The best resolution you usually get from a standard fax machine is around 200 dpi; standard faxes - about 100 dpi. If you need your fax documents to work with a custom fax machine, you can't go beyond that.



Ergo, converting your PDF to a 100 or 200 dpi bitmap and rotating it 90 degress should work as well as anything. Various ghostscript based toolchains can render. In addition, there are a number of PDF and postscript tools that can perform this type of manipulation (like PDF2PS and psutils ) directly from PDF.

+3


source







All Articles