使用 Acrobat Javascript 可以打开最近文档列表中的文件吗?
我有一个迂回的方式,我计划从 SharePoint 启动 acrobat,这样我就可以在传入和传出文件时操作该文件,但我很好奇是否有一种方法可以启动 Adobe Acrobat 9 标准版并拥有它自动从最近文档列表中打开文档 1。
我知道可以在应用程序启动时使用以下代码打开一个新文档:
TrustedRoutine = app.trustedFunction( function(){
app.beginPriv();
if (app.activeDocs.length<1){
app.openDoc("/C/Documents and Settings/USERNAME/Desktop/FILENAME.pdf");
}
app.endPriv();
})
不过,我很好奇要做的是将一个对象或参数放入 openDoc 中,这将导致它从注册表中读取该密钥。
任何帮助将不胜感激。
更新:经过更多研究,我意识到 VBScript 可以做更多的事情。 VBScript 可以代替吗?
I have a round-about way I am planning on launching acrobat from SharePoint so I can manipulate the file both on the way in and the way out, but I am curious if there is a way to launch Adobe Acrobat 9 Standard edition and have it automatically open document 1 from the recent documents list.
I know its possible to open a new document at app launch with code such as:
TrustedRoutine = app.trustedFunction( function(){
app.beginPriv();
if (app.activeDocs.length<1){
app.openDoc("/C/Documents and Settings/USERNAME/Desktop/FILENAME.pdf");
}
app.endPriv();
})
What I am curious about doing though is to put an object or parameter into the openDoc that will cause it to read that key from the registry.
Any help would be appreciated.
Update: Been researching more, and I realize that VBScript can do additional things. Would VBScript be able to do it instead?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过大量研究后,我们逐渐意识到,如果不编写自己的 OCX 控件来处理来自 sharepoint 的 OpenDocument 调用,就不可能完全重写集成。因此,该公司将投资升级到已经编写了此控件的 Acrobat X。
After doing a ton of research, we have come to realize this is not possible to completely rewrite the integration without writing out own OCX control to handle the OpenDocument call from sharepoint. Because of this, the company is going to instead invest in upgrading to Acrobat X which already has this control written.