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

JS for Enabling Full Screen Transitions

HydSeek
Registered: Sep 3 2010
Posts: 3
Answered

Hi, I have a PDF document which I wish to send to audiences to be used as a slide show. I do not find any objects nor properties nor methods in JS for Acrobat that will enable full screen transitions when the recipient opens the document in Reader - at the moment, the only way to enable this feature is manually by going to preferences and removing the check box against 'Ignore all Transitions'. Can this checkbox not be removed by JS so that when the user opens the document, it automatically goes into 'Enable Transitions' Mode? The existing objects and properties and methods only set the transition to a particular type of transition but this has no effect if the user has already checked the 'Ignore all Transitions' checkbox. Welcome suggestions and a way around this. Thanks.

My Product Information:
Acrobat Pro 9.3.1, Macintosh
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Did you try the setPageTransitions method of the Document object?

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

UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
Document-level scripts cannot overrule user preferences.
try67
Expert
Registered: Oct 30 2008
Posts: 2398
@UVSAR
I thought that as well, but then I noticed that next to the FullScreen object, there's a marking (P), that is described as:
"Even though this property does not change the document, it can permanently change a user’s application preferences."
This suggests to me that [i]some[/i] user preferences can be overruled by a script.

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

gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
And that is why Adobe puts that note there. There are a couple of document level actions that can permanently change the user preference. Sometimes this was within a specific version. So it is best to avoid using them or if you must, then resetting the preference to the original state.

George Kaiser

UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
No they don't. They *USED* to, but not any more. Read the A9 SDK:

[i]
The following properties, if run from a document-level script, no longer affect the user preferences:
app.fs.defaultTransition
app.fs.useTimer
app.fs.usePageTiming
app.fs.loop
app.fs.escapeExits
app.fs.clickAdvances
app.fs.timeDelay
app.fs.backgroundColor
app.fs.cursor
app.openInPlace
These properties still affect user preferences if run from an application-level script.
[/i]
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Thanks for the tip.
I was indeed using an older reference file because I can't stand the version 9 HTML version...

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

HydSeek
Registered: Sep 3 2010
Posts: 3
Thanks for the clarification UVSAR - how do I run a 'Application-Level' script? at the moment, I am attaching the JS to the document using the FullScreen Object and it does not work. Would really appreciate it if you could provide the code and a way to run the same as an Application Level script. My requirement is that when the user opens the file using Reader, the file should open and Transitions should be ON - at the moment, I am unable to get the transitions to work if the Ignore Transitions Checkbox is marked. Thanks.
UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
@try67 - I don't like it much either, but it's not like it could be in a.... PDF.... (oh, snap)

@HydSeek - application level scripts must be installed by the user, by copying a .JS file into their Acrobat/Javascripts folder. Because they have elevated rights they require conscious actions by the user to run them, therefore you can't embed one inside a document.

They're only a realistic option for enterprise installs (who can be made to accept them via custom installers or group policy) or closed groups of users who are prepared to trust you.
HydSeek
Registered: Sep 3 2010
Posts: 3
UVSAR, many thanks for your tremendous knowledge which is equally matched by your willingness to help others to understand this subject. I appreciate your assistance.