PDF conversion using ImageMagick takes forever on some files
Posted: 2011-03-25T07:41:00-07:00
I have a bunch of PDFs that I am trying to convert to various image formats, including PDF, using ImageMagick's convert that in turn is using GhostView to do the conversion (By the way, the reason I need PDF to PDF conversion is because the original docs are PDF with text behind and I need to produce image-only PDFs). A typical command I am using is this:
I noticed that often conversion takes a long time and on some documents it never finishes and I have to kill the process. It seems to have something to do with my use of "-density 300x300" option to control the DPI setting of the output. If I don't use it, it seems not to freeze, but in this case the resulting DPI is too low and the output is unreadable, even if the original PDF was of good resolution.
- Is it possible to predict in what situations such conversion will freeze?
- Is it possible to increase output DPI without running into this issue? What parameters should I use?
Thanks!
Code: Select all
convert -density 300x300 -verbose input.pdf output.pdf
- Is it possible to predict in what situations such conversion will freeze?
- Is it possible to increase output DPI without running into this issue? What parameters should I use?
Thanks!