Page 1 of 1

possible bug converting acrobat pdf to other formats

Posted: 2011-02-03T10:57:43-07:00
by fmw42
IM 6.6.7.4 Q16 Mac OSX Tiger.

There have been a number of reports recently in User, Development and Bugs about IM not creating multiple files from a multipage pdf. Here is an example.

Created in Adobe Acrobat 8:

http://www.fmwconcepts.com/misc_tests/p ... crobat.pdf

identify test4pages_acrobat.pdf
test4pages_acrobat.pdf[0] PDF 128x128 128x128+0+0 16-bit Bilevel DirectClass 7.7KB 0.010u 0:00.040
test4pages_acrobat.pdf[1] PDF 100x100 100x100+0+0 16-bit Bilevel DirectClass 7.7KB 0.010u 0:00.020
test4pages_acrobat.pdf[2] PDF 128x128 128x128+0+0 16-bit Bilevel DirectClass 7.7KB 0.010u 0:00.020
test4pages_acrobat.pdf[3] PDF 128x128 128x128+0+0 16-bit Bilevel DirectClass 7.7KB 0.010u 0:00.020


convert test4pages_acrobat.pdf test4pages_acrobat.jpg
or
convert est4pages_acrobat.pdf test4pages_acrobat_%d.jpg

produces only one resulting page -- either test4pages_acrobat.jpg or test4pages_acrobat_0.jpg


Created in Mac PREVIEW:

http://www.fmwconcepts.com/misc_tests/p ... review.pdf

convert test4pages_preview.pdf test4pages_preview.jpg
**** Warning: considering '0000000000 00000 n' as a free entry.

**** This file had errors that were repaired or ignored.
**** The file was produced by:
**** >>>> Mac OS X 10.4.11 Quartz PDFContext <<<<
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.


But works fine to make 4 individual frames.
test4pages_preview-2.jpg
test4pages_preview-0.jpg
test4pages_preview-1.jpg
test4pages_preview-3.jpg


Create by IM:

http://www.fmwconcepts.com/misc_tests/p ... ges_im.pdf

convert checks.png cyclops.png lena2.png zelda3.png test4pages_im.pdf

convert test4pages_im.pdf test4pages_im.jpg

works correctly to create:
test4pages_im-3.jpg
test4pages_im-2.jpg
test4pages_im-1.jpg
test4pages_im-0.jpg

Re: possible bug converting acrobat pdf to other formats

Posted: 2011-02-03T11:08:27-07:00
by magick
ImageMagick uses the pngalpha device when it finds an Adobe Illustrator PDF. Many of these are a single page. Ideally, Ghostscript would support a device that allows multiple PDF pages with transparency but it doesn't. We'll look for a patch for this problem and get it into the next point release of ImageMagick.

Re: possible bug converting acrobat pdf to other formats

Posted: 2011-02-03T11:15:03-07:00
by fmw42
In the mean-time, what would be the best PDF device to use to modify in the delegates.xml file?

Re: possible bug converting acrobat pdf to other formats

Posted: 2011-02-03T11:26:15-07:00
by magick
Easy fix. Edit delegates.xml and change pngalpha to pnmraw.

Re: possible bug converting acrobat pdf to other formats

Posted: 2011-02-04T20:35:42-07:00
by fmw42
The problem seems to be fixed in IM 6.6.7.5 Q16 Mac OSX Tiger. Thanks.