Convert PDF to JPG/GIF
Posted: 2008-03-10T15:16:10-07:00
I'm having repeated issues converting PDF's with transparency to any raster format, which I have attributed to problems that Ghostscript has with PDF transparency.
However, I've uncovered a new problem that seems to me to be related to IM, not GS, and I'm looking for some explanation of what's going on.
This PDF file: http://drop.io/8mfemel is a PDF created in InDesign CS3, exported to PDF, and form fields added in Acrobat 8. The original INDD file has some graphics that contain transparency.
When I use straight Ghostscript (through GSView 4.9 and Ghostscript 8.61) to convert the PDF file to JPG, I get a good rendering of the file, as shown here: http://bwacm.imagick.s3.amazonaws.com/s ... orrect.jpg
However, when I use IM (6.3.7) to do a 'convert spring.pdf spring.jpg' I get a bad rendering as shown here: http://bwacm.imagick.s3.amazonaws.com/s ... roblem.jpg . I have also tried 'convert -alpha on spring.pdf spring.jpg' with the same results.
I understand that JPG doesn't support transparency, but the problem is also identically visible when converting to a GIF, and all the transparency in the INDD file should have been flattened before exporting. I get a couple errors when running the IM command, but they are related to fonts not being embedded, and I'm pretty sure this is unrelated.
Any explanation on why I'm getting different results from GS and IM (which passes all PDf related renderings directly to GS, as I understand it) would be greatly appreciated.
Thanks.
However, I've uncovered a new problem that seems to me to be related to IM, not GS, and I'm looking for some explanation of what's going on.
This PDF file: http://drop.io/8mfemel is a PDF created in InDesign CS3, exported to PDF, and form fields added in Acrobat 8. The original INDD file has some graphics that contain transparency.
When I use straight Ghostscript (through GSView 4.9 and Ghostscript 8.61) to convert the PDF file to JPG, I get a good rendering of the file, as shown here: http://bwacm.imagick.s3.amazonaws.com/s ... orrect.jpg
However, when I use IM (6.3.7) to do a 'convert spring.pdf spring.jpg' I get a bad rendering as shown here: http://bwacm.imagick.s3.amazonaws.com/s ... roblem.jpg . I have also tried 'convert -alpha on spring.pdf spring.jpg' with the same results.
I understand that JPG doesn't support transparency, but the problem is also identically visible when converting to a GIF, and all the transparency in the INDD file should have been flattened before exporting. I get a couple errors when running the IM command, but they are related to fonts not being embedded, and I'm pretty sure this is unrelated.
Any explanation on why I'm getting different results from GS and IM (which passes all PDf related renderings directly to GS, as I understand it) would be greatly appreciated.
Thanks.