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

Javascript from pdf to open specific page on pdf on web

zortser
Registered: Sep 19 2007
Posts: 2

Thom
 
I need to link from an Acrobat pdf file to internal pages on a pdf file on the web. In other words, do from a pdf file that which is straightforward if linking from an HTML page to a pdf file using page=pagenum.
http://example.org/doc.pdf#page=3 in the Acrobat SDK
I want to do this from Acrobat javascript.
 
From the Console, I first tried:
 
this.getURL ("http://xxx.com.test.pdf")
 
This command found the test.pdf file and appended it to the currently open Acrobat.
But need the file opened in a separate window.
So, first I need to just open a remote pdf file.
 
Then, I need to go to a specific page - i.e., go here in to page 3:
this.getURL ("http://xxx.com.test.pd#page=3")
 
Alternatively, after opening the pdf file, I would like to execute a search:
search.query ("A-0055")
Which would search for that content.
 
Can you help me or point me in the right direction.

My Product Information:
Acrobat Pro 9.3.1, Macintosh
zortser
Registered: Sep 19 2007
Posts: 2
I see now how to open the url - which is as follows:

app.launchURL ("http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_developer_guide.pdf",true)

This works in the debugger and opens the file in the url.

Next is how to navigate to a particular page in the opened file.

I have seen previous questions on this topic - but no answers, not even an answer that this cannot be done in javascript.

Thanks
try67
Expert
Registered: Oct 30 2008
Posts: 2398
It's not related to JS. You just need to specify the correct parameter.
Have a look here for more info: PDF Open Parameters

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