1 Reply Latest reply on Oct 4, 2012 1:17 PM by Test Screen Name

    this.closeDoc crashes Acrobat X

    db_dev_zach

      I recently upgraded from Acrobat Pro 8 to Version 10.  In the previous version I was able to use

       

           this.closeDoc(true);

       

      just fine.  In the new version, it crashes every time, indicating "Adobe Acrobat has encountered a problem and needs to close."  This is running either from a toolbar button defined in a folder level javascript or from a document level javascript (both have the same result).  It will also crash when I use

       

           app.activeDocs[index].closeDoc(true);

       

      as a workaround.  The problem appears to be that it won't allow you to close the active document.  I've noticed that it works fine when run from the console, however.

       

      I've scoured the web and no one seems to have a solution to this.  Do you have any suggestions?  Is this a new security restriction?  Is it a bug in the current version?

       

      Thanks.  Any advice you can give in this matter would be helpful.