![]() |
Rotating a pdf file with convert loses resolution
I'm trying to rotate a whole pdf file 180 degrees using
Code:
convert original.pdf -rotate 180 final.pdf Is there a way to mantain the original resolution, or another tool that can do that? I use Slackware 13.0. Thanks in advance!! |
Try using:
http://www.accesspdf.com/pdftk/ |
Use mogrify instead ?
|
I tried to compile pdftk, but I got this error, after lots of warnings:
Code:
gcjh --classpath="." Gnu; And as I said I tried convert/mogify, but the resolution of the output is crappy... Is there a way to make the resolution better? It would just fine to use convert... |
You didn't say you'd tried mogrify, and convert actually is designed to "convert" from one format to another. If you can find an option to preserve the resolution for convert then good luck. Maybe you would be better off converting the file to images then rotating each image, before making a pdf out of them.
|
Actually mogrify is the same as convert. From mogrify's man page:
Quote:
|
Hmm, yeah, it looks like nobody's maintaining it anymore.
Well, here are some alternatives: http://sourceforge.net/projects/jpdftweak/files/ http://sourceforge.net/projects/pdfshuffler/files/ I tested the first one and it works. The second one has some dependencies. |
I think you are right. I emailed the author of pdftk about this compile error a couple days ago, and didn't get an answer... That, and the gcc he recommends is version 3.5.2.
Anyway, I got convert to work properly... The correct option to use in convert/mogrify is '-density XXX'. The default is 72 (dpi), so all pdfs look like crap. I used: convert -density 200 original.pdf -rotate 180 final.pdf and it worked fine. Thanks everyone. |
All times are GMT -5. The time now is 06:33 AM. |