2 Replies Latest reply on Oct 6, 2016 12:44 AM by heresha93876846

    How do I add a subfolder to Cpath?

    heresha93876846 Level 1

      I have this code and I want to add subfolder to the code so the output files will go in a subfolder named pdf. How can I do this??

       

      /* Extract Pages to Folder */

       

       

          var re = /.*\/|\.pdf$/ig;

       

       

          var filename = this.path.replace(re,"");

       

       

       

          {

              for ( var i = 0;  i < this.numPages; i++ )

              this.extractPages

               ({

                  nStart: i,

                  cPath : Number(filename) + (i+1) + ".pdf"

              });

          };