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

JavaScript for a Loop between pages

scubapauluk
Registered: Apr 3 2009
Posts: 6

I am trying to get a PDF to loop between 2 or more pages in a PDF, preferably to work in non full screen mode, unless fullscreen can be forced in both Reader and Pro?

The PDF is say 20 pages but I am only after 2 pages to loop with a time delay between them of say 5 seconds. I have found and tried the following script but it loops the whole document

app.fs.timeDelay = 5; // delay 5 seconds
app.fs.useTimer = true; // activate automatic page turning
app.fs.usePageTiming = true; // allow page override
app.fs.isFullScreen = true; // go into fullscreen

Help would be much appreciated

try67
Expert
Registered: Oct 30 2008
Posts: 2399
I think you can do this by first extracting the pages you want to display to a new document (this will not work in Reader, though) and then run the full screen presentation from there.

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

scubapauluk
Registered: Apr 3 2009
Posts: 6
Unfortuneately it needs to be done in Reader and as a self contained PDF viewable in Reader 7