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??
Pdf rotation: loss of quality.
Re: Pdf rotation: loss of quality.
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/
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/
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Pdf rotation: loss of quality.
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
See... A word about Vector Image formats
http://www.imagemagick.org/Usage/formats/#vector
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: Pdf rotation: loss of quality.
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.
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.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Pdf rotation: loss of quality.
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.
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.
You place the files somewhere on the web, and point to them.pps: How can I load some files on this forum?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/