These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Acrobat Reader X & app.newDoc()

little
Registered: Mar 25 2011
Posts: 2
Answered

Hello,
 
I've created a form with some buttons on it on
I've a trusted function in the Javascripts folder of my Acrobat Reader X :
 
createBlank = app.trustedFunction(function(doc, path, lines) {
app.beginPriv();
doc = app.newDoc();
doc.saveAs("blank.pdf");
doc.closeDoc(true);
app.endPriv();
}
 
But in the console appears the message:
NotAllowedError: Security settings prevent access to this property or method.
App.newDoc:3:Field Submit:Mouse Up
 
I tried to create a new document and extend Adobe Reader rights but no luck.
 
What can I do?
Thanks for your help.
 
Best Regards.

My Product Information:
Reader 10.0, Windows
UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
Accepted Answer
Adobe Reader cannot create new documents. That's an Acrobat feature.
little
Registered: Mar 25 2011
Posts: 2
Thanks a lot for your help!