Menu
I’m playing with the new function in Acrobat 6 that supports layers.
I’ve got buttons to turn layers on and off using the code below but that’s all, I want the PDF to control which layers are visible when the document is opened by what time it is any ideas.
Thanks
var docOCGs = this.getOCGs();
for (var x=0; x < docOCGs.length; x++)
{
if(docOCGs[x].name == “Layer 2”)
{
docOCGs[x].state = !docOCGs[x].state;
}
}