[英]Using Acrobat Pro and Javascript to make PDF
I'm trying to work my way through the Acrobat Javascript Examples before starting on making a javascript application for it. 在尝试为其创建javascript应用程序之前,我尝试通过Acrobat Javascript示例工作。 I'm stuck on the very first example:
我坚持第一个例子:
var newDoc = app.newDoc(); if (newDoc == "undefined") app.alert("Undefined NewDoc");
A new PDF Document does indeed appear, but the newDoc variable is undefined. 确实会出现一个新的PDF文档,但是newDoc变量是未定义的。
Below is a link to the example I'm using along with snippet of Acrobat's JavaScript Debugger I'm using. 以下是我正在使用的示例的链接以及我正在使用的Acrobat JavaScript调试器的代码段。 Why is the newDoc undefined?
为什么newDoc未定义?
http://help.adobe.com/livedocs/acrobat_sdk/10/Acrobat10_HTMLHelp/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Acrobat10_SDK_HTMLHelp&file=JS_Dev_Overview.71.1.html http://help.adobe.com/livedocs/acrobat_sdk/10/Acrobat10_HTMLHelp/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Acrobat10_SDK_HTMLHelp&file=JS_Dev_Overview.71.1.html
I got it working. 我知道了 You have to highlight the code you want to run before executing.
在执行之前,您必须突出显示要运行的代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.