Skip navigation
Currently Being Moderated

Add link to external file

Mar 27, 2008 4:15 AM

Hi,

i want to add a link to an external file in my document.
like "-a href=file://local path ... in html.

regards
Johannes
 
Replies
  • Currently Being Moderated
    Mar 27, 2008 6:08 AM   in reply to Johannes Lehninger
    You can use the command:

    app.launchURL("http://www.adobe.com", true)

    where the second parameter is a boolean that says whether to launch the URL in a new window or not. The default is false.

    Hope that helps
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 27, 2008 9:28 AM   in reply to Johannes Lehninger
    I tried it here and found that it gave a security error. I do not think that the launchURL command allows you to get to a file on file system.

    You could try certifying the document.
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 28, 2008 4:31 AM   in reply to Johannes Lehninger
    If you import a word file into designer then those links would be ignored. If you create a PDF from the word file (in Acrobat) then the links would be maintained.
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 28, 2008 5:44 AM   in reply to Johannes Lehninger
    That is why we cannot support them when we import the word file.
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 30, 2008 1:04 PM   in reply to pguerett
    You would need to do your forms in Acrobat to have such features.

    Aandi Inston
     
    |
    Mark as:
  • Currently Being Moderated
    Apr 16, 2008 6:32 AM   in reply to Johannes Lehninger
    Adobe does have a secruity feature built in that keeps you from opening files or folders on the file system, but there is a way around this. First on your form you would put something like this on the click event of a button for your link:

    var myPath = "o|/Network Folder/FileName";
    openNetworkFolder(myPath);

    Next you need to set up a JavaScript file that you will save as a trusted function for Reader. This js file should have the following code:

    openNetworkFolder = app.trustedFunction(function (sURL) {
    app.beginPriv();
    try {
    var nDoc = app.launchURL("file:///" + sURL, true);
    } catch (err) {
    app.alert('Error: ' + err);
    }
    app.endPriv();
    });

    This js file will need to be saved on each users local machine in their javascripts folder for reader. Also if you are pointing to a shared network folder, each user will need to have the same drive mapped for this to work properly for each user. This workaround allows you to bypass the built in Adobe security without having to sign the document.
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)