possible bug converting acrobat pdf to other formats

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.

possible bug converting acrobat pdf to other formats

Postby fmw42 » 2011-02-03T10:57:43+00:00

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/pdf_tests/test4pages_acrobat.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/pdf_tests/test4pages_preview.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/pdf_tests/test4pages_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
User avatar
fmw42
 
Posts: 14568
Joined: 2007-07-02T17:14:51+00:00
Location: Sunnyvale, California, USA

Re: possible bug converting acrobat pdf to other formats

Postby magick » 2011-02-03T11:08:27+00:00

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.
User avatar
magick
Site Admin
 
Posts: 9630
Joined: 2003-05-31T11:32:55+00:00

Re: possible bug converting acrobat pdf to other formats

Postby fmw42 » 2011-02-03T11:15:03+00:00

In the mean-time, what would be the best PDF device to use to modify in the delegates.xml file?
User avatar
fmw42
 
Posts: 14568
Joined: 2007-07-02T17:14:51+00:00
Location: Sunnyvale, California, USA

Re: possible bug converting acrobat pdf to other formats

Postby magick » 2011-02-03T11:26:15+00:00

Easy fix. Edit delegates.xml and change pngalpha to pnmraw.
User avatar
magick
Site Admin
 
Posts: 9630
Joined: 2003-05-31T11:32:55+00:00

Re: possible bug converting acrobat pdf to other formats

Postby fmw42 » 2011-02-04T20:35:42+00:00

The problem seems to be fixed in IM 6.6.7.5 Q16 Mac OSX Tiger. Thanks.
User avatar
fmw42
 
Posts: 14568
Joined: 2007-07-02T17:14:51+00:00
Location: Sunnyvale, California, USA


Return to Bugs

Who is online

Users browsing this forum: Bing [Bot], Google Adsense [Bot] and 4 guests