16 Replies Latest reply on Jul 28, 2016 7:57 AM by Underz

    NotAllowedError: Replace Pages

    Underz Level 1

      Hi there,

      I am trying to code a button to replace a page (basically from enghlish page to a french page), to keep all the numbers the same with just changing the page...and it's creating an error.  I understand the error is because I haven't given permissions.  How can I do that?

      I already have a config.js file in the javascript folder, but it's for a SaveAs function.

       

      My code is

       

      this.replacePages({
      nPage: 0,
      cPath:"/D:/Documents/Documents/Club Siemens/Club Siemens - Aspire Statement Re-do/Final Test - June 2016/aspireplatinumnb.pdf",
      nStart: 0,
      nEnd: 0
      });
      

       

      Error message is

       

      NotAllowedError: Security settings prevent access to this property or method.

      Doc.replacePages:5:Field Button4:Mouse Up