JavaScript app.openDoc UNC-path?

Ask a Question related to Adobe Acrobat SDK, Design and Development.

  1. #1

    Default JavaScript app.openDoc UNC-path?

    Hi!

    I'm trying to open a PDF-Document (which is stored on a MOSS
    Sharepoint Server) by using its UNC-Path (e.g. \\mysite.mydom.com
    \personal\user1\SharedDocuments\xy.pdf) with JavaScript using the
    Method "app.openDoc".

    But that does not work. I get an NotAllowedError (Security settings
    prevent access to this property or method)

    Maybe I just don't know the right way to write the path (I know that I
    have to use "/c/xxx.pdf" if I want to open "c:/xxx.pdf" but I can't
    find any information on how to writ UNC-Paths).

    I also get this error when I try to open the original URL (http://
    mysite.mydom.com/personal/user1/SharedDocuments/xy.pdf) - maybe
    because of the authentication MOSS requires - but it works when I try
    to open documents other http-servers.

    I tell you what I want to do - maybe someone has a better idea to
    accomplish that: We use a standard-workflow in MOSS that sends a
    message including the URL to a PDF-File which then should be signed by
    some user. That of course doesn't work, because IE handles the URL and
    opens Acrobat, which gets only a downloaded Copy of the Document which
    can not be saved back to the right place. I thougt of reading the URL,
    calculating the UNC-Path to it and opening it properly to sign and
    save back.

    A way to a system call from within Acrobat JavaScript would also help.

    Yours,

    Harald
    HARI Guest

  2. Similar Questions and Discussions

    1. Linking to Network Folder path with javascript
      Hi, I need some help please and hopefully you have the answer. I have a javascript code that involves two drop down menus, when one is chosen...
    2. failed to openDoc call when open from tracker
      when my pdf load follow Javascript is executed: --- console.println( path ); test_doc = app.openDoc( { cPath: path , bHidden: true } ); //...
    3. Javascript openDoc
      My PDF has a Javascript that opens a new document window. using: var otherDoc = app.openDoc("myDoc.pdf", this); The script always worked on...
    4. #25444 [NEW]: php4isapi.dll path to win.ini doesn't load from current path.
      From: ict at primus dot ca Operating system: W2K PHP version: 4.3.3 PHP Bug Type: *Configuration Issues Bug description: ...
    5. can't find AE opendoc sample code
      the dev apple site either doesn't have -- or has done a good job hiding -- any sample code demonstrating how to handle the AE opendoc event. I...
  3. #2

    Default JavaScript app.openDoc UNC-path?

    I am having the same problem. We have multiiple pdf's on sharepoint and are attempting links among the documents. That it, a button is created in pdf1 that runs a javascript that uses openDoc with a cPath: "\\sharepoint.whatever\Shared Documents\pdf2.pdf". It seems no matter how I write the path, i.e. UNC (\\) or http://, I always get the Not allowed error security....

    I am able to use openDoc to open a pdf on the C drive
    jameslightning Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139