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

Pointers Please - JS navigation of a document

Cirrus
Registered: Jul 29 2008
Posts: 6

Hi all;

I have read by Thom Parker's two or three articles about buttons and navigation, but being a complete JS novice I have not had much luck in translating his articles in to exactly what I want to do;

o - Generate 3 small buttons on each page of a PDF doc - something like PreviousView, DocHome (top of the current document) and Home (where home is a different PDF doc acting as an index page) so that it can be useful when in Full Screen / Kiosk stylee mode.

o - Replicate the 3 buttons across all the PDFs within a folder - say 30 or 40 of them.

Ideally I would like to learn more about JS and sort the buttons myself, but being pushed for time I would appreciate a few (lots!) of pointers if people can spare them ;)

Also, am I correct in thinking that to apply the same JS across a range of documents automagically I actually need to apply them to all the documents Reader may encounter by adding it to the ApplicationData folder? Is there no way of saying "replicate these buttons across all the documents you subsequently open starting from this index"?

Thanks folks.

Cirrus
Registered: Jul 29 2008
Posts: 6
Bump? Seems the command I was trying to use to open a document is no longer on Adobes "safe" list, which has buggered me up some ;(
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Have you looked at the eSeminar on demand "Getting Started With Forms"?

If you want to make form fields, you will need Acrobat Professional or Acrobat 9 Standard or above.

You first need to learn how to make a form field button and enter the one line of script. Once you have the 3 buttons on the first page of the PDF you can then duplicate them across the entire PDF.

George Kaiser

Cirrus
Registered: Jul 29 2008
Posts: 6
I havent seen that eSeminar - will seek it out.

I wasnt going down the Forms route at all - I was just defining button, location and action in one big JS that ran on startup; perhaps I am missing an obvious solution by not investigating that idea so will certainly look in to it.

Thanks ;)
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
If end user has Reader, you can not add fields by JavaScript. Since these fields will be static, why cause your end users to wait each time the PDF is opened for the static fields to be added?

George Kaiser