Frequently Asked Question:
Layer Attributes
Is there a way to get the Layer's/OCGs printable and visible attributes ? There is already a way to set them, but i didn't find out how to get the layer attributes of a loaded PDF.
In version 7.21 there is a new function called GetOptionalContentConfigState which will tell you if an optional content group is visible or not (on or off). There isn't a function for determining if an OCG is printable at the moment, but we'll try to add it for the 7.21 release as well.