Created attachment 8572 [details] pdf with the transparency problem The following pdf is a red circle and rectangle over a transparent background: http://publicly-shared.s3.amazonaws.com/pdf_with_transparency.pdf When rendering it as a png, the red square and circle are rendered over a white square. Here is the command i am using gs -dNOPAUSE -dBATCH -sDEVICE=pngalpha -sOutputFile=pdf_with_transparency.png pdf_with_transparency.pdf
Created attachment 8573 [details] result of conversion to png
This pdf was created with Adobe Photoshop. I have a number of more complex pdfs exhibiting the same problem. When creating the pdf with 2 layers in photoshop (one for the square, one for the rectangle), the conversion works properly. After flattening the layers to a combined rectangle and circle shape, the problem appears.
This is a problem in pngalpha device. The file consists of a single image with a soft mask. pngalpha device marks the whole image as opaque instead of using the soft mask.
Thanks! Let me know if you want me to test additional files...
Alex: any progress on that?
*** This bug has been marked as a duplicate of bug 687630 ***
This has been fixed by commit: 174cfd1 Fix pngalpha when PDF has transparency. Bugs 687630, 693024 and 695042.