Solved

Acrobat & InDesign create pdf files with links that grab an open browser window

Posted on 2006-11-13
5
3,341 Views
Last Modified: 2012-06-27
I use InDesign 4.0.4 to create files and then export to pdf. When I the open the pdf file and click on  with link, it  grabs an open browser window, e.g., my web email. I want it to open a new window. My understanding is that there should be a place in InDesign to specify "target=_blank", but I can't find it. How do I specify in InDesign that the links should open new windows?

In Acrobat 7.0, I can use Advanced>Links>Create from URLs to create links in a pdf document (exported from InDesign), but those links also grab an open window. How do I specify in Acrobat that the links should open new windows?  
0
Comment
Question by:ngoldfarb
  • 3
  • 2
5 Comments
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 500 total points
ID: 17932633
"target=_blank" is a feature of a web browser. Acrobat (or Reader) is not a browser and does not support this function. You can - with some JavaScript to accomplish the same. Create your "link" not as a link, but as a button, and assign a JavaScript action to it. The method app.launchURL() has two parameters, the first one is the URL, and the second one is a boolean that indicates if a new browser window shoudl be launched. It's default is false, so you need to specify it and set it to true:

app.launchURL("http://ww.experts-exchange.com", true);

0
 

Author Comment

by:ngoldfarb
ID: 17932743
OK, I think I've figured out the problem. This problem occurs only when the document is not displayed in a browser, so it is not a problem.
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 17932927
Actually, you still may have a problem: There is a preference setting that determines if a link should be opened in Acrobat (or Reader), or an external browser window. Depending on this setting, you may also run into the same problem even when the PDF is displayed in the browser.
0
 

Author Comment

by:ngoldfarb
ID: 17933091
The setting is specific to the user and the results should not come as a surprise, right?
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 17933150
Correct. But if you want a certain behavior (which may not be the case for your application), you need to consider that.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Javascript using a combo box to pre-populate a field. 7 69
Acrobat Reader DC - Can't Copy Text 7 1,330
Adobe Acrobat Pro DC & Document Cloud 2 125
pdf file 7 84
Acrobat’s JavaScript is a great tool to extend the application, or to automate recurring tasks. There are several ways a JavaScript can be added to the application or a document (e.g. folder level scripts, validation scripts, event handling scripts,…
PDF files have been in the limelight due to its unmatched features.  Personal documents, emails, business reports and eBooks are all converted into PDF files owing to peerless features provided by it. Adding watermark to a PDF file is a method to se…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question