Could not ignore hidden layer when convert PDF

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.
Post Reply
namle2605
Posts: 6
Joined: 2012-11-06T23:38:14-07:00
Authentication code: 67789

Could not ignore hidden layer when convert PDF

Post by namle2605 »

When I convert a PDF file to JPG. Hidden layer of PDF file is showed in result file.
I used ImageMagick 6.7.9-10 2012-10-12 Q16 on CentOS 6.2

These are files:
https://www.dropbox.com/s/w9vt2ozh191yp ... nlayer.pdf
https://www.dropbox.com/s/d9l4dggi8mx1m ... nlayer.jpg

Thanks and Best regards,
Nam Le
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Could not ignore hidden layer when convert PDF

Post by fmw42 »

I do not believe that IM knows anything about hidden layers in pdf files. I downloaded your pdf file and opened it in Adobe Reader and it shows all the layers. Photoshop only sees the one layer that is shown on your DropBox image. But Mac Preview and GraphicConvert only see the one layer as seen in your jpg. I suppose each PDF reader sees different layers as the default layer. I think for use in IM, you will need to export only the layer you want to use.

I believe that IM uses Ghostscript to open/read pdf files, so the issue may be with Ghostscript.
Post Reply