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

How do I make viewing preferences the same on every monitor?

jtumelty
Registered: Jul 21 2008
Posts: 3
Answered

I'm creating a pdf for a client who will be passing it on to all employees internal. I want to make it so that when the pdf is opened, all my current preference, (i.e. open full screen, background color, and transition type) override the users current preferences. I tried to follow instructions in some other post, but found that it is still a little buggy. This is what I have entered in terms of doc level scripts....

app.fs.backgroundColor = color.white;
app.fs.defaultTransition = "WipeLeft";

However, the problem I am having is with the background color. When the document firsts opens in full screen, the white background preference isn't showing up. If I exit out of full screen and then enter back in, it works.

Also I found it works on the first time if I get the pop up that asks me how I want to handle opening a doc in full screen. If I click "remember this action" or do this every time, however it's worded, that is when I start to experience the above problem.

Let me know if any further clarification is needed.
Josh

My Product Information:
Acrobat Pro 8.0, Macintosh
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
For these parameter you are at the mercy of Acrobat. I imagine that if you tried the same document on different versions of Acrobat, reader, and differnt platforms, and even different computers, you'd see different activity.

Both of the parameters you are trying to change are visual properties of Acrobat. The Document scripts may or may not be loaded before the PDF is completely loaded and displayed. Because of this, these parameters may be applied before they make any sense to Acrobat. So they could be overwritten when the document completes loading, and/or being displayed. It's a timing problem.

The solution may be to place the code so that it's run after the PDF is up and running. For example, in the "Page Open" event for the first page of the document. Or in a timeout, that waits a little bit before running the code.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script