I'm trying to work my way through the Acrobat Javascript Examples before starting on making a javascript application for it. 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.
Below is a link to the example I'm using along with snippet of Acrobat's JavaScript Debugger I'm using. Why is the newDoc undefined?
I got it working. You have to highlight the code you want to run before executing.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.