function openCheck()
{
if (!this.external)
{
app.alert("Acrobatでは実行できません");
this.closeDoc(true);
// var myDoc = event.target;
// myDoc.closeDoc(true);
}
}
openCheck();
需要注意的是:
1. 上述的source只能在PDF 用Acrobat Reader打开时才起作用,
如用IE等打开时会报「NotSuportedErr」错误.
2. 如何判定PDF是用Acrobat Reader打开,还是用IE打开的方法
this.external = True (IE等打开)
this.external = False (Acrobat Reader打开)
具体参阅:http://www.openspc2.org/reibun/Acrobat7/javascript/doc/010/index.html
本文介绍了一段用于检测 PDF 文档是否使用 Acrobat Reader 打开的 JavaScript 代码,并解释了该代码的工作原理及如何区分不同的打开方式。
1290

被折叠的 条评论
为什么被折叠?



