These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Layer in front of the 3d

floG23
Registered: Apr 21 2010
Posts: 14

Hi,
is there a possibility to create a Layer (which we can turn on/off) in front of an active 3d-area? Or has the 3d-area the highest priority to be shown?

In case I want to bind some helping text as a layer in my 3d-pdf and this will be directly behind the 3d-area. So it is always not visible :/

One opportunity is to make a non-active and non-visible button with the text included as a symbol (*.jpg) but this will enlarge the file.

Is there another way to get it in front?

Greetings
floG

UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
Yes you can, but you have to do a bit of juggling about. Normal OCG layers created in Acrobat 9 always sit behind the 3D annotation, but watermarks can sit in front, and you can control a watermark's visibility with JavaScript even though it's not in the sidebar.

Use the Document - Watermark - Add menu item to add your layer, presumably from another PDF file - [b]Make sure "keep position and size.." is turned off on the appearance options before loading your watermark layer or it won't appear in front[/b].

To turn off the watermark layer using a button or link on the PDF; set it to "Run a JavaScript" and enter the below:

var OCGs = this.getOCGs();for (var i=0; OCGs && i<OCGs.length;i++) {if (OCGs[i].name == "Watermark") OCGs[i].state = false;}

same idea to turn it on again, using state = true.

You can promote a watermark into the layers sidebar too, but that involves application-level scripting - let me know if you want an example of how to do that.