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

How can I force the doument to open in fullscreen by a Java Script

Ingunn
Registered: Nov 13 2008
Posts: 4
Answered

Hi!
I have a project that I want to open in fullscreen. I have used Initial View and Full Screen options under Properties, but when I open it I get a warning the program Ask if I want to open it in Fullscreen Mode. And then I read something in this forum about setting properties to the page by right clicking and add an action or Run a Javascript. I seem to need the Java Code for this action. Does anybody know the code to do so??

Kind regards ingunn, Norway

My Product Information:
Acrobat Standard 8.0, Macintosh
try67
Expert
Registered: Oct 30 2008
Posts: 2399
This should do the trick:
this.addScript({cName:"Make full screen", cScript:"app.fs.isFullScreen=true;"});

However, if the "Alert when document requests full screen" option in the Full Screen section of the Preferences is ticked, the warning message will be displayed anyway.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

Ingunn
Registered: Nov 13 2008
Posts: 4
Ok, so there is no way around this alert it seems

ingunn : -)
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4308
You need to write a tursted funciton and place it in an Adobe/Reader application JavaScript folder on each system that will use this PDF.

George Kaiser