Created
December 18, 2009 01:48
-
-
Save gsharp/259208 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Extract Pages to Folder */ | |
// regular expression acquire the base name of file | |
var re = /.*\/|\.pdf$/ig; | |
// filename is the base name of the file Acrobat is working on | |
var filename = this.path.replace(re,""); | |
try { | |
for ( var i = 0; i < 1; i++) { | |
this.extractPages ({ | |
nStart: i, | |
cPath: "/F/temp/"+filename+"_" + i +".pdf" | |
}); | |
} | |
} catch (e) { | |
console.println("Aborted: " + e); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment