Issue with image dimensions when converting from a PDF
Posted: 2007-08-12T09:54:02-07:00
I am having a few problems (easily reproducible ones thankfully) when converting certain multi-page PDFs to jpeg.
Versions: Mac OS X 10.4.10 + ImageMagick 6.3.5 + GPL Ghostscript 8.60
The offending PDF can be found here: evil.pdf [37.6Mb]
Another similar PDF, but one that works as expected: good.pdf [28.1Mb]
I am having 3 problems, the first one is critical, while the other 2 don't matter too much at the minute.
Mark
Versions: Mac OS X 10.4.10 + ImageMagick 6.3.5 + GPL Ghostscript 8.60
The offending PDF can be found here: evil.pdf [37.6Mb]
Another similar PDF, but one that works as expected: good.pdf [28.1Mb]
I am having 3 problems, the first one is critical, while the other 2 don't matter too much at the minute.
- convert evil.pdf[1] -colorspace RGB bad-1.jpg
The original page in the pdf is 25.9cm x 40.2cm, but the resulting jpeg is 1611x1170 with the right half of the page filled with white space. The jpeg should be closer to 754x1170.
convert good.pdf[1] -colorspace RGB good-1.jpg
produces the correct results.
The only thing I can see that is odd about evil.pdf, are pages 37 and 38 - convert evil.pdf[36] -colorspace RGB bad-2.jpg
Produces a black page with some text (the original has an image that is not being rendered) - convert evil.pdf[37] -colorspace RGB bad-3.jpg
Explodes in a ball of fire. (It's probably a font issue on my machine)
Mark