There's no "activeDocument" property in Acrobat.
Your other error is that you're using an incorrect file-path syntax. It needs to be something like this:
Thanks for the reply. I am clearly doing something wrong. I tried this instead:
var aDocs = app.activeDocs;
var myForm = aDocs;
I get the first "Hello" popup message. However c:\test\test1.pdf is still not created, and I don't get the second popup message "World".
To refer to the current document you can simply use the "this" keyword, like this:
However, the saveAs function requires privileged context, and a Page Open script is not privileged.