11 Replies Latest reply on Mar 24, 2014 10:58 PM by josephrobin

    Page rotate script not working(not allowed error security settings prevent access to this property)

      HI,

       

      I am using a script to rotate each pages in pdf file when clicking a button. I have added a script to rotate file in the rotate button's click event as a javascript.It is working in acrobat but not in adobe reader. Pleae see the script

       

      nStart = 0;

      nEnd = this.numPages - 1;

      nRotate = 90;
      try
      {
      if (this.numPages > 0)
                 {   
                 this.setPageRotations(nStart , nEnd , nRotate)
                 }
      }
      catch(e)
      {
      app.alert("Processing error: "+e)
      }

       

       

      But I'm getting this  error in adobe reader not in acrobat.'not allowed error security settings prevent access to this property or method'. What is the problem. Please anybody tell me.