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

Document Links - looking for best method

syswizard
Registered: May 29 2010
Posts: 46

I know this has been beaten to death on this forum, but I am still confused.
Word 2003 + the Acrobat 9 COM add-in works for hyperlinks, but opens the files into the existing or new window according to the settings within Acrobat reader. I don't like that behavior.
I see that by using app.openDoc in a script called by the link, I always get a new window upon clicking a link....and that's what I want.
However, I want the links to work TRANSPARENTLY between a file system (file:///) and a web server (http://). Can I assume most web servers support WEBDAV and therefore I can always use openDoc ? Or do I need to get fancy with some javascript and set a global variable to "web" or "fs" (filesystem) and have my javascript use either launchURL or openDoc, depending upon whether the documents are on the web or on a hard drive/flash drive ?
Yet another alternative is to handle all of this with some VBA within Word.
What's the best way to go here ?

My Product Information:
Acrobat Pro Extended 9.3.1, Windows
syswizard
Registered: May 29 2010
Posts: 46
No one can respond ?
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
System Wizard,

No matter where you place your PDFs, you will have to keep the relative directory and file structure the same from a common base. You can then use relative links so that the moved files can be moved form one location to another.

As to opening the files in a different window, with the usual links, one needs to set the application preferences. Other wise you will need to edit each link to use the 'openDoc' method. You may also need to set the 'disclosed' property of each linked file to a logical 'true'.

George Kaiser

syswizard
Registered: May 29 2010
Posts: 46
Thanks much GK. I guess what I need is a piece of Javascript coding that:
1) spins thru all files in a folder and it's sub-folders.
2) finds the links made via the Acrobat add-in
3) converts these links to openDoc or launchURL calls (make this an option before starting)
4) sets the calls to openDoc or launchURL with parm values to insure an opening in a new window
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
I do not think you will find this feature in Acrobat's JS. You most likely will need a 3rd party plug-in or have to write your own.

George Kaiser

syswizard
Registered: May 29 2010
Posts: 46
GK - I hear you....but it does seem so OBVIOUS in terms of a need / requirement, no ?
All I want to do is to insure my links open in a new window for either file system or http environment.
Geesh.....this is NOT rocket science. I can't believe Adobe hasn't thought of this in their implementation.
GGoFive
Registered: Sep 1 2010
Posts: 1
I may have an answer that will help. I have a newsletter that I create in Publisher. It contains numerous hyperlinks to both files and web pages. I convert it to and Adobe pdf and email it. When I tested my links I found that some of them opened in a new window and some of them opened over the newsletter. When they opened over the newsletter there was no way to get back to the newsletter.

I read through all the posts regarding this issue here on Acrobat and also in Windows Live. There were lots of answers regarding inserting code that were completely foreign to me...insert it where??

I have finally figured out that when I select the text in Publisher and 'insert hyperlink' if I navigate to the folder where the file is stored that link will open over the newsletter. If I open the file that I plan to link to first, then when I insert hyperlink I use the 'browsed pages' window, and select the file I just opened, the link will open in a new window.

I hope this helps...I'm relieved to have solved my own problem. :)

The files that I am linking to are pdfs that are stored on a network drive for use on an intranet site.

I have Adobe Acrobat 8 Standard and use Windows XP with Office 2003.