Page 1 of 1

Re: Bug when converting image with matte to pdf

Posted: 2008-03-07T00:11:35-07:00
by darkart
I have a similar problem, my source is a gif w/ an alpha channel. The created PDF has the SMask referring to object 15 while the SMask data is in object 16. Adobe Reader (v 8.1.2, Mac OS X 10.5.2, x86) gives and error 14 if the SMask refers to object 15. If I edit the PDF to set the SMask to refer to object 16, Adobe Reader opens the PDF without errors.

I'm using ImageMagick 6.3.9-1.

I took a quick look at coders/pdf.c, it appears that the SMask object will be +7 from when the SMask line is written. Current (6.3.9-1) code has +6. I've made a patch for this against the 6.3.9-2 source at made it available at:

http://www.darkart.com/people/eric/patc ... pdf.c.diff


It'd be great if someone could verify that is correct (I looked quickly) and if so, incorporate it.



Thanks much!


-eric

Re: Bug when converting image with matte to pdf

Posted: 2008-03-13T21:06:33-07:00
by darkart
It appears this is fixed in 6.3.9-5, thanks much!