This content has been marked as final.
Show 7 replies
-
1. Re: app.launchURL() Frustration
(Tembowa) Jan 17, 2008 8:04 AM (in response to Skempy)Tested this on both Win and Mac and it works by opening in a new window on both. How do you have your web browser set to open windows?
~T -
2. Re: app.launchURL() Frustration
(Chris_Bishop) Jun 5, 2008 8:00 AM (in response to Skempy)PDFs are so much fun aren't they... I recently had a need for opening a weblink that forced a download of an assoicated file of another file type from a PDF for new content that my company was considering making live, and this is what I used to achieve the desired result, however it would not allow for implementation unless it was created first in Acrobat 7 or higher...
app.launchURL("YOUR URL HERE", false); -
3. Re: app.launchURL() Frustration
(Tembowa) Jun 5, 2008 8:16 AM (in response to Skempy)That's when the method was implemented according the JS API Reference. I believe it was a replacement for "getURL".
~T -
4. Re: app.launchURL() Frustration
(Ben_Marchbanks) Jun 5, 2008 8:44 AM (in response to Skempy)There used to tips on how to do this using a JS call to the browser.
something to the effect of
app.launchURL("javascript:window.open('http://www.example.com/mydoc.doc')",true);
I'm a little rusty on the exact syntax -
5. Re: app.launchURL() Frustration
Patrick Leckey Jun 5, 2008 9:09 AM (in response to Skempy)If you read the documentation on the launchURL API, it will throw an exception if the URL starts with javascript: or file:. -
6. Re: app.launchURL() Frustration
(Ben_Marchbanks) Jun 5, 2008 9:39 AM (in response to Skempy)This must be a change in newer Acrobat versions. I know it worked in Acrobat 7. Just another reminder for me as to why I migrated to Flash / Flex......I convert PDF to Flash (pages) and pretty much do all the things that Acrobat security measures prevent. -
7. Re: app.launchURL() Frustration
(Robin_Mann) Jun 18, 2008 7:55 AM (in response to Skempy)Any solution found?
I have a pdf form displayed in a browser window (using fdf toolkit/ASP.NET). I want a button to open a new browser window and display another pdf file that is on the server. Under Acrobat 7, this worked well using app.launchURL(http://www.mysite.com/myfile.pdf, true). This doesn't work under Acrobat 8. It just hangs IE. I think this is because it needs to use a trusted function. I don't see that I can because I don't have access to the App/Init event - only the document event.
The following doesn't work either - it causes "Internet Explorer cannot download . Unspecified error":
getURL("javascript:void(window.open('http://mysite.com/myfile.pdf'))", false)
Is there any way whatsoever that I can have Adobe Reader 8 displaying a pdf in a new window from a link/button in a pdf? And in Reader 5 and 6 too?

