Page 1 of 1
Pdf rotation: loss of quality.
Posted: 2007-06-12T16:22:40-07:00
by poincare999
When I do
convert originalfile.pdf -rotate 90 finalfile.pdf
the final file has a poor quality.
How can I don't lose quality?
Tanks
ps: I have the same problem if I do
convert originalfile.pdf -rotate 90 finalfile.jpeg
pps: How can I load some files on this forum??
Re: Pdf rotation: loss of quality.
Posted: 2007-06-12T18:02:59-07:00
by poincare999
I have resolved the problem with this command:
convert -density 300x300 originalfile.pdf -rotate90 finalfile.pdf
This following web page is much useful; ImageMagick is a fantastic program.
http://www.imagemagick.org/Usage/
Re: Pdf rotation: loss of quality.
Posted: 2007-06-12T19:59:56-07:00
by anthony
Remember PDF is a vector image format. Im is a raster image processor.
See... A word about Vector Image formats
http://www.imagemagick.org/Usage/formats/#vector
Re: Pdf rotation: loss of quality.
Posted: 2007-06-12T21:02:23-07:00
by poincare999
Are scanned pdf_books raster or vector?
I thought that all scanned pdf_book are raster.
However, some my scanned pdf_book surely are raster, because I have scanned them in jpeg format, and after I have converted them in pdf with IM.
But some other books that I own, was scanned from other people, and I don't know if they are raster or vector.
Re: Pdf rotation: loss of quality.
Posted: 2007-06-12T22:11:27-07:00
by anthony
You did not mention that the PDF was of scaned books. At least not in this thread.
That means the PDF would contain (somehow) a raster image, rather than text that can be rendered in terms of vectors. This mean that the rasters will be stored at one particular resolution (density) and unless IM renders them at that resolution the image will be resized and thus degraded.
The ideal solution would thus be either to rotate the PDF as PDF leaving the data as is, or somehow extract the stored raster image as is without ghostscript re-drawing it at some other resolution.
pps: How can I load some files on this forum?
You place the files somewhere on the web, and point to them.