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++ )
cPath : Number(filename) + (i+1) + ".pdf"
Update the value you set for cPath. Note that the directory separator character is / not \ in this case e.g. Directory/file.pdf. Be sure to create the folder first, Acrobat won't do that.