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

Display thumbnails of pages and allow selection

DanHi
Registered: Sep 25 2010
Posts: 4
Answered

I have a set of images (one per page) in my document. I'd like to create a JavaScript item that would display a set of thumbnails in a window, and let the user click on one of them to take them to that page, then have a button on that page that would take them back to where they started.
 
I'm new to JavaScript in adobe, and I looked through the API documentation to see if I could figure out how to do this, but I haven't had any success. Could someone point me in the right direction?
 
Thanks,
 
Dan

Dan Hinsley

My Product Information:
Acrobat Pro 9.3.1, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Do you mean that you want to create a JS window that will display the images from your file? I'm afraid that's not possible with a JS script.

- 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
As there is only one image per page, the pages sidebar (that shows thumbnails of each page) already does what you want.

Alternately you could add a page to the start of your document showing a contact sheet of the images, and make each one a link to the page in question. To return to page 1 you'll need to add a link or a button to the other pages, using the advanced editing tools in Acrobat - though if your original document is being assembled in something like InDesign you can create all the links more efficiently there, as you can use master pages.
DanHi
Registered: Sep 25 2010
Posts: 4
I wanted to use the navigation sidebar, but I don't want every image listed, just a subset. I tried the add/delete thumbnails, but that doesn't seem to have any effect on the navigation bar. Any idea what these API do?

Dan Hinsley

UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
The JS API doc.addThumbnails() method simply creates and stores thumbnail images of a specified page range in the PDF, to save Acrobat or Reader from having to generate them each time the document is opened - it's also an option when printing through Distiller, but it has no effect on what is displayed on screen other than making it a bit faster.

The pages sidebar displays every page in the document, and there is no way to change that.