【发布时间】:2016-11-01 10:25:45
【问题描述】:
我正在编写一个从文档中提取一些页面的函数,以便将其用作证明。我使用了一个开关盒,如果它是真的会输出一些页面。在第三种情况下,我想提取文档的前两页,即第 23 页和第 24 页以及最后两页。这是我无法解决的。我可以只使用 this.extractPages 方法还是也必须使用 insertPages 方法。如果我需要 insertPages 方法,我该如何使用它。代码位于受信任的函数内。
switch (true){
case this.numPages == 1:
this.extractPages(0,0, newPath);
app.alert("A one paged proof has been created",3)
break;
case ( (this.numPages > 1) && (this.numPages < 9) ):
this.extractPages(0,1, newPath);
app.alert("A two paged proof has been created",3)
break;
(PROBLEM IS HERE)
case ( (this.numPages > 9) && (this.numPages < 49) ):
this.extractPages(0,1, newPath);
app.alert("A proof has been created",3)
break;
default:
app.alert("No proof has been created",3)
break;
【问题讨论】:
标签: javascript pdf acrobat