- 精华
- 活跃值
-
- 积分
- 337
- 违规
-
- 印币
-
- 鲜花值
-
- 在线时间
- 小时
累计签到:14 天 连续签到:1 天
|
/* Split all pages */
// regular expression acquire the base name of file
var re = /.*\/|\.PDF$/ig;
var rePath = /.*\//ig;
var strFilename = this.path.replace(re,"");
var strPath = this.path.match(rePath);
var nResponse = app.alert({cMsg:"Each page in the file " + strFilename + " will be saved as a separate file in the location " + strPath + ". Do you wish to proceed?", nIcon: 2, nType: 2});
if(nResponse==4)
{
try
{
for ( var i = 0; i < this.numPages; i++ )
this.extractPages
({
nStart: i,
cPath: strPath + "//" + strFilename+"_" + (i+1) +".pdf" // (*)
});
}
catch (e)
{
app.alert({cMsg: "Split aborted due to error: " + e})
}
}
|
|