4 Replies Latest reply on Jun 13, 2014 12:36 AM by try67

    Open file attachment from text links within reader enabled pdf document...

    andrejtmtld

      I created a PDF file with embedded sub pdf documents in Adobe Acrobat Pro X.

      Then I created a link to text part (Actions: Run a JavaScript).

      The JavaScript code which is executed by clicking the link is shown below:

       

      var d= this.dataObjects;

      dd="abcde-123_test.pdf";

      for (var i=0; i < d.length; i++) {

      if (dd.indexOf(d[i].name)>=0) {

      odoc=openDataObject(d[i].name);

      dc=odoc.path;

      odoc.closeDoc();

      app.openDoc(dc);

      }

      }

       

      Having the PDF file without reader enabled extensions, the link works perfectly.

      After activation of reader enabled extensions and reopening it in Adobe Acrobat Pro X, the same document raises the following error:

       

      RaiseError: The file may be read-only, or another user may have it open. Please save the document with a dfferent name or in a different folder.

      Doc.closeDoc:7:Link undefined: Mouse Up

      ===> The file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder.

       

      Opening this reader enabled PDF document in Adobe Acrobat Reader X, the following error is displayed:

       

      Exception in line 7 of function top_level, script Link:Mouse Up

       

      The initial non-reader enabled PDF document displays the very same error message when being opend in Adobe Acrobat Reader X instead of Adobe Acrobat Pro X.

       

      Can someone comment on my issue?

      Many thanks!