Page 1 of 1

Converting Photoshop PDF with Transparency

Posted: 2018-10-19T11:52:03-07:00
by dpizzle
MacOS High Sierra IM: 7.0.8 GS: 9.25

Converting transparent PDFs created specifically in Photoshop doesn't seem to work. Other transparent PDFs created in other software seems to work ok after getting the conversion settings correct. Issue seems to arise from a white color being multiplied to all transparent pixels.

Input PDF: https://www.dropbox.com/s/7kr7debvkhssd ... t.pdf?dl=0
Expected Output: https://www.dropbox.com/s/4plfecx7y5ih4 ... t.png?dl=0

Some things tried:
gs -sDEVICE=pngalpha -sOutputFile=Output.png -r100 Input.pdf
magick Input.pdf Output.png
magick Input.pdf -alpha on -background none Output.png

Output usually looks something like:
https://www.dropbox.com/s/8m2hfeqf8yx5i ... t.png?dl=0

Re: Converting Photoshop PDF with Transparency

Posted: 2018-10-19T12:07:10-07:00
by fmw42
I can confirm the same results using IM 6.9.10.12 or 7.0.8.12 with GS 9.24

I would point out that there have been problems reported with GS 9.25, but my GS 9.24 does not work either.

For me it opens fine in Mac Preview (OSX Sierra) and in GraphicsConverter.

Re: Converting Photoshop PDF with Transparency

Posted: 2018-10-19T12:36:58-07:00
by snibgo
It converts fine for me, IM v7.0.7-28 and GS v9.19.

Re: Converting Photoshop PDF with Transparency

Posted: 2018-10-19T12:43:05-07:00
by fmw42
That indicates to me that it is likely Ghostscript. Try reinstalling at a version less than 9.24. 9.23 was pretty stable, but you could go back to 9.19 as snibgo has shown that it works.

I would suggest you report this to the Ghostscript developers.

Re: Converting Photoshop PDF with Transparency

Posted: 2018-10-19T14:06:07-07:00
by dpizzle
Thanks snibgo, perfect conversion with GS 9.19 installed using:

magick Input.pdf Output.png

Re: Converting Photoshop PDF with Transparency

Posted: 2018-10-21T13:44:32-07:00
by fmw42
I played with your file in Photoshop CC 2018. If I save it again and turn off "Preserve Photoshop Editing Capabilities" in the PDF Save dialog box, then it seems to work fine when I convert to PNG using Ghostscript 9.24.