Scripting Acrobat 7 - Save and shrink each page

I have been searching for some documentation on scripting Acrobat 7 with no luck.
Can anyone help me out here ? I am trying to put together at script, that wil save each page in a PDF as individual pages, each page should be “shrunk” to a Internet friendly pagesize.

Thanks for any help!


Model: PB 17" 1,25
Browser: Firefox 1.0.3
Operating System: Mac OS X (10.4)

I would like to know how to do this too, although I woudn’t need the shrinking part just the saving of each page as a separate pdf.

Can anyone help?

Model: Intel iMac 20"
Browser: Safari
Operating System: Mac OS X (10.4)

Best way that i’ve found is to execute Java from the batch sequence of Acrobat this can also be tied in with the optimizer to down sample files. Not sure if the same Java can be run with the do Java command directly from within the script there was a post a while back where someone was attempting this don’t remember how far they got. Here is the bit of JS:

/* Extract Pages to Folder /
// regular expression acquire the base name of file
var re = /.
// filename is the base name of the file Acrobat is working on
var filename = this.path.replace(re,“”);
try {
for (var i = 0; i < this.numPages; i++) this.extractPages( { nStart: i, cPath: filename+“_0” + (i+1) +“.pdf” }); } catch (e) { console.println("Aborted: "+e) }