Here's a real handy JavaScript that lots of people could use. One of the neat things about the batch processing function in Acrobat with this script is that you can also have it run the Optimizer. That affords you the ability to do all sorts of cool stuff. Never mind the fact that there are a plethora of other functions you can add as part of a sequence.
Begin JavaScript:
/* extraire */
// regular expression acquire the base name of file
var re = /.*\/|\.pdf$/ig;
var filename = this.path.replace(re,"");
try
{
for ( var i = 0; i < this.numPages; i++ )
this.extractPages
({
nStart: i,
cPath: filename+"_" + (i +1)+".pdf" // (*)
});
}
catch (e)
{
console.println("Batch Aborted: " + e )
}
End JavaScript
You can thank Jimmy Høiby for contributing this to the Enfocus User Group.
Jimmy Høiby
Graphic Designer
Silkeborg Bogtryk
Centraltrykkeriet
Stagehøjvej 27
DK-8600 Silkeborg
Denmark
Matt Beals