Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Acrobat Batch Processing - JavaScript

Status
Not open for further replies.

EdRev

Programmer
Aug 29, 2000
510
US
This is a snippet of an Acrobat Javascript to extract files from a pdf document:

/* 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 < this.numPages; i++)
this.extractPages(
{
nStart: i,
cPath: &quot;/F/temp/&quot;+filename+&quot;_&quot; + i +&quot;.pdf&quot;
});
} catch (e) {
console.println(&quot;Aborted: &quot;+e)
}

I'm a little bit confused at the line CPath: &quot;/F/temp/&quot;+...&quot;
Is &quot;/F/temp/&quot; the same as &quot;F:/&quot;

How will I customize it to extract 3 pages at a time to a file that I want to hard-code?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top