Save As Adobe PDF includes "hidden" sublayers!
- July 8, 2020
- 3 replies
- 3700 views
Hi,
In Illustrator, when a layer is hidden (visibility off) but a sublayer within that layer is not (sublayer visibility on), the layer and every sublayer it contains are not displayed. However, when this Illustrator file is Saved As>Adobe PDF, it seems that information from the sublayers is still saved into the PDF file. Whether the sublayers are indeed present (viewable or retrievable) in the PDF file, I don't know, but the resulting PDF file size indicates that some or all the information from the hidden layer and its sublayers are included in the PDF.
I have created the attached file to show this issue. The pdfsizeissue.ai file contains two layers: Layer 1 contain a square with drop shadow, Layer 2 contains type. Here are the various scenarios, saving the Illustrator file as Adobe PDF ("Illustrator Default" settings except for "Preserve Illustrator Editing Capabilites", "Embed Page Thumbnails", "Create Acrobat Layers from Top Level Layers" all unchecked):
1- All layers are visible. File size: 498KB, pdfsizeissue_allvisible.pdf
2- Top Layer 1 hidden (Layer 2 visible, Layer 1 invisible, sublayer <Path> in Layer 1 invisible). File size: 504KB, pdfsizeissue_toplayer1hidden.pdf
3- Sublayer in Layer 1 hidden but Layer 1 top level visible. File size: 81.9KB, pdfsizeissue_sublayer1hidden.pdf
4- Layer 1 top level and sublayer <Path> in Layer 1 both hidden. File size: 88.2KB, pdfsizeissue_alllayer1hidden.pdf
To complete the picture, I am adding two more scenarios:
5- All top level layers are hidden but not the sublayers. File size: 499KB, pdfsizeissue_alltophidden.pdf !!
6- All top level layers and sublayers within are hidden. File size: 58.7KB, pdfsizeissue_allhidden.pdf
I was unable to attach pdfsizeissue.ai so I saved it as Adobe PDF with Illustrator Default settings and attached that as pdfsizeissue_savedaspdf.pdf
The expected outcome is that when Layer 1 top level is hidden, then every sublayer within Layer 1 acts as if it was also hidden and does not affect PDF file size. So I would expect scenario 2 file size to be the same as scenario 4 (88.2KB, not 504KB).
This is for CS4 but likely applies to later Illustrator versions too.
There is another thread discussing what seems to be a similar topic. I am under the impression that the proposed solution in that thread does not work, as reported by another user.
Questions:
1- Can other folks reproduce the issue with the attached file?
2- Is there a setting in Save As that would correct the issue?
3- How can I view what information from the sublayer makes it into the PDF? The PDF looks as expected (what I see on the PDF looks like what I see in Illustrator). I cannot find the "hidden" objects from the sublayers in the PDF. The only indicator that there is a problem and that those objects are the likely cause is that the PDF file size is much bigger than expected. They account for the increase in file size but are unaccounted for in Preflight. Where are they in the PDF file?
Any help would be welcome. Thanks.
