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

How to open linked pdf file in new window where the active file is also a pdf file

lungtey
Registered: Jul 13 2007
Posts: 2

i have pdf files which need to be linked, but when i the link is clicked the target file (pdf) should open in new window (not in the current window). please help.
or is there any javascript object like app.openDoc(""), so that i can open in new window? please help

My Product Information:
Acrobat Standard 7.0.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
There's a JavaScript preference for where the new link should be opened. It's the "app.openInPlace" property in JavaScript.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

ajs_rdg
Registered: Jul 28 2007
Posts: 3
I have exactly the same requirement:
want to link to a destination in another pdf, and have that opened in a new window, whether or not the user has set "Open cross-documents links in same window" in Adobe Reader.

According to
http://www.adobe.com/devnet/acrobat/pdfs/js_api_reference.pdf

"The following methods, if run from a document-level script, no longer affect the user preferences: ...
app.openInPlace"

Does that mean the user preference doesn't get changed, or the user preference overrides the document-level script?

http://www.acrobatusers.com/forums/ask_an_expert/questions/view/69/
shows how to open a pdf in a new window, but not how to open it to a particular destination.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The "openInPlace" property when executed from a document context changes the property for that document only, i.e. it overrides the user preference. Haven't tested it but that's what the documentation means.

What do you mean by "Open it to a particular destination"? It opens a PDF in a new Acrobat window.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

ajs_rdg
Registered: Jul 28 2007
Posts: 3
thomp wrote:
What do you mean by "Open it to a particular destination"? It opens a PDF in a new Acrobat window.
What I mean is I want a link to not just open another document (in a new window), but open it showing a particular point in the document.

So, for example, click on one link, and you see the top of page 32 in the other document, while another link takes you straight to a paragraph halfway down page 89.