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.