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

InDesign layers, OCG initstate and Adobe Reader Rights Enabled problem

sol.manager
Registered: Oct 1 2009
Posts: 17
Answered

I have read the excellent tutorial on OCGs (by Thom Parker) and searched around, but have come to the following conclusion regarding OCGs.

I have a Reader Enabled document with a signature field. When the user, "signs" the document, I had a script set to show an OCG layer. Everything works, however when you close and re-open the document, it appears all OCGs revert to their default state.

I understand now that I can affect the display state for the current session of any layer, but with a Reader Rights Enabled form, I only have R access and not R/W access.

This means I cannot write a javascript that can change the "Default State" of a layer and have it "stick" once the document is saved and re-opened. So then, is my assumption correct or is there a way to accomplish this? (Right now, I am using layers default state to visible/not print and then using buttons to control whether or not an object is visible.)

Thoughts? Suggestions? Knowledge anyone?

My Product Information:
Acrobat Pro 8.1.6, Macintosh
UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
True, you can't change the content or scripting of a PDF document in Reader - but you can of course change and save the state of form fields as you are already doing, so I'd try using a document-level Javascript that checks if the field has been filled when the document opens, and sets the OCG accordingly (very similar to what you're already doing). The PDF will still open in the default state, but will instantly update (assuming they have JS enabled in the first place).