convert fails with purportedly valid pdfs
Posted: 2015-04-20T11:17:14-07:00
I have a batch of pdfs from a vendor, who says they are valid. I'm trying to convert them to pngs with the following command:
With one pdf (60779014.pdf), convert hangs, and with the other (60779212.pdf), I get the following output:
I've tested this out with two versions of ImageMagick/Ghostscript -- 6.5.4-7/8.70 and 6.9.0-3/9.15, and get the same results.
I've also tried the command out on a randomly selected pdf from elsewhere, and convert does just fine.
I suspect there is something wrong with the pdfs, but since the vendor claims they're valid, I want to ask if anyone in the imagemagick community can spot an ImageMagick problem here.
I've included links to the offending pdfs, if you'd like to help.
https://www.dropbox.com/s/baobf9jf99tsa ... 4.pdf?dl=0
https://www.dropbox.com/s/duzncjwvo6nai ... 2.pdf?dl=0
Code: Select all
convert -density 400 foo.pdf -resize 30% -quality 92 foo.png
In this case, convert produces 3 pngs from the pdf, but 2 of the 3 are blank. What I want is 3 pngs, one for each page of the pdf, none blank.jbig2dec FATAL ERROR decoding image: symbol id out of range! (195/156) (segment 0x03)
**** Warning: File has insufficient data for an image.
jbig2dec FATAL ERROR decoding image: runlength too large in export symbol table (272 > 169 - 0)
(segment 0x02)
**** Warning: File has insufficient data for an image.
jbig2dec FATAL ERROR decoding image: runlength too large in export symbol table (441 > 158 - 0)
(segment 0x02)
**** Warning: File has insufficient data for an image.
**** This file had errors that were repaired or ignored.
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.
I've tested this out with two versions of ImageMagick/Ghostscript -- 6.5.4-7/8.70 and 6.9.0-3/9.15, and get the same results.
I've also tried the command out on a randomly selected pdf from elsewhere, and convert does just fine.
I suspect there is something wrong with the pdfs, but since the vendor claims they're valid, I want to ask if anyone in the imagemagick community can spot an ImageMagick problem here.
I've included links to the offending pdfs, if you'd like to help.
https://www.dropbox.com/s/baobf9jf99tsa ... 4.pdf?dl=0
https://www.dropbox.com/s/duzncjwvo6nai ... 2.pdf?dl=0