8 Replies Latest reply on Jul 5, 2011 11:19 PM by colourit2000

    get actual page number of pdf pages...

    dhishok Level 1

      Hi Everyone,

       

      I have developed the script to extract pdf pages into single page pdf. I need to put actual number in the pdf file name prefix.

      I have tried several ways but unable get the actual page number.

       

      Below is my script:

       

      for (var i = 0, j = this.numPages-1; i < this.numPages; i+=1 ,j+=1){
      //var pgNum = this.pageNum;
          this.extractPages({
          nStart: i,
          nEnd: i == numPages - 1 ? i : i + 0,
          cPath : name + "_" + j + "_" + pgNum + ".pdf"
          });
      }

       

      Can anyone help me to get this done.


      Thanks in advance

      Thiyagu