Commenting on a specific layer.

How do I make comments on a layer so that the comments are only visible when the layer is visible?

Dennis Outlaw

2 Answers

I am not aware of the possibility to allocate annotations to an Optional Contents Group, OCG (aka layer).

What you might try is to assign another property, such as the strokeColor (and if needed the fillColor for the annotations using it), and then add/extend the logic to show / hide the OCGs by setting the hidden property to the annotations accordingly. You may have to loop through all the annotations and set the hidden property for all of them.

Hope this can help.

Max Wyss   

I am not trying to create links, just adding comments to a specific layer (OCG) the same as you would in InDesign.

Dennis Outlaw   

Please specify a reason: