7 Replies Latest reply on Jun 18, 2008 7:55 AM by (Robin_Mann)

    app.launchURL() Frustration

    Skempy Level 1

      I have searched all the documentation I have available. I have searched this forum and every other Acrobat forum I could find, I have searched the web and still have had no luck with a solution to this problem:

      the method app.launchURL("http://www.example.com/", true); does not open the link in a NEW window but opens the link in an existing window. Is there any way to make this work using Acrobat Reader 7 or above in Internet Explorer 6 or above?

      Lots of people have asked a similar question but I have yet to find a solution.


      Simon Kemp
        • 1. Re: app.launchURL() Frustration
          Level 1
          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?

          • 2. Re: app.launchURL() Frustration
            Level 1
            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
              Level 1
              That's when the method was implemented according the JS API Reference. I believe it was a replacement for "getURL".

              • 4. Re: app.launchURL() Frustration
                Level 1
                There used to tips on how to do this using a JS call to the browser.

                something to the effect of


                I'm a little rusty on the exact syntax
                • 5. Re: app.launchURL() Frustration
                  Patrick Leckey Level 3
                  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
                    Level 1
                    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
                      Level 1
                      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?
                      1 person found this helpful