Skip to main content
New Participant
December 1, 2016
Question

app.newDoc();

  • December 1, 2016
  • 2 replies
  • 1311 views

Hi, i am trying to learn javascript for pdf and i was start with the "Developing Acrobat Applications Using JavaScript".

My problem is that i am trying to open a new file with --  app.newDoc();  -- and the Dbg reverse the message (Exception in line 1 of function top_level, script Document-Level:lesson-00-a NotAllowedError: Security settings prevent access to this property or method. App.newDoc:1:Document-Level:lesson-00-a).

Please if there is any advice about the way to learn javascript for pdf.

.

This topic has been closed for replies.

2 replies

Inspiring
December 1, 2016

"app.newDoc()" does not open a PDF it creates a new PDF.

Without seeing the exact script code is not possible to understand or recreate the issue.

For learning I would look at www.pdrscripting.com and Acument Journal's eBooks

Bernd Alheit
Community Expert
December 1, 2016

You can look here:

JavaScript