Login using the username and password you created for AcrobatUsers.com.
Note: This is not the same as your Adobe ID.
Benefits of Free Membership:
Find out what AcrobatUsers.com is all about
You don't have to be a member to look at any content on the site. Increase your expertise with our helpful tutorials, videos, forums, and sample PDFs.
Like what you see? Take the next step and become a member. Register now to get discounts, attend eSeminars, ask questions and more.
Get the most out of your membership. Post in the forums, create your profile, submit to the gallery, attend a user group meeting. Log In now.
Hello all,
I was wondering if anybody has a javascript that will allow a person to type in a page number in a form field and have it open a pdf file to that exact page.
Specifically, I am trying to create a self-contained CD that automatically opens up a pdf file listing all the pdf's contained on the CD. After each pdf listing, there will be a form field asking which page number of that pdf the user would like to go to. Once the user types in the page number and hits ENTER, the pdf would open up to the page the user specified.
I've been trying to see if the Run Command parameters or the URL open parameters for pdf's would work, but it looks like this will have to be done via javascript.
Any help would be much appreciated.
Thanks!
David
Offline

You can use the keystroke event or the validate event and then use the new value of the field (make sure the field is formatted as a number) to go to the page, like so (this code is not tested, so it might need some tweaking):
var value = event.value; if (event.willCommit) this.pageNum = Number(value) - 1;
Have a look in the reference files for more information about the event object.
Offline
Thanks, try67. You gave me a great starting point work off of.
Offline