Hi list...
I have a 30 page document. The first page has some OCG layers, the rest don't. When the user goes to that first page, layer 2 is shown, and a big link button sequentially shows the rest of the layers. But, layer 1 should only be shown upon printing. I can't get this to work for some reason. Here's my code on the document level:
this.setAction({cTrigger: "WillPrint", cScript: onPrint});
function onPrint(){
layersRef[0].state = true;
this.pageNum = 0;
// this should make it go to the first page and just show the first layer, but doesn't work.
}
Any guidance is appreciated...thanks,
- Michael M.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com