-
1. Re: Need JS to open link to another page in same PDF in new document window
try67 Apr 12, 2017 6:34 AM (in response to bexterinni)There isn't. You can't set the link itself to open in a new window, but you can change the app-wide setting using app.openInPlace ...
-
2. Re: Need JS to open link to another page in same PDF in new document window
bexterinni Apr 12, 2017 6:41 AM (in response to try67)Thank you try67 - would you be able to point me to some info regarding how to use app.openInPlace? I'm not familiar with it or how it works.
I appreciate your quick response!
~bexterinni
-
4. Re: Need JS to open link to another page in same PDF in new document window
bexterinni Apr 12, 2017 8:10 AM (in response to try67)Thank you again try67.
Please forgive my ignorance, but is this line of code something that i'd add to each of the specific buttons that i want to link/open in a new window? Do I add it using the "run a JavaScript" action on the button? Do i use it in conjunction with "go to a page in this document" action?
~bexterinni
-
5. Re: Need JS to open link to another page in same PDF in new document window
try67 Apr 12, 2017 8:14 AM (in response to bexterinni)No, you only need to execute it once and then it will change the setting that applies to all links. However, you should be aware that this will change the behavior not just in your file, but any other file the user opens, so it might be a good idea to inform them about it, or even get their permission to make this change, before doing so.
The code can be inserted as a doc-level script, since it only needs to run once.
-
6. Re: Need JS to open link to another page in same PDF in new document window
bexterinni Apr 12, 2017 8:16 AM (in response to try67)Oh ok. Thank you for explaining. I don't think this would be a good solution for this particular PDF because i have other internal links that I DO want to stay within the same window.
~bexterinni
-
7. Re: Need JS to open link to another page in same PDF in new document window
try67 Apr 12, 2017 8:22 AM (in response to bexterinni)This setting is only used for links that don't have an explicit setting that tells them otherwise, so if the "Open in" option is set to "Window set by user preferences". If you set a link to either "New Window" or "Existing Window" it should still work the same.