Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

app.newDoc();

New Here ,
Dec 01, 2016 Dec 01, 2016

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.

.

TOPICS
Acrobat SDK and JavaScript
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 01, 2016 Dec 01, 2016

You can look here:

JavaScript

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 01, 2016 Dec 01, 2016
LATEST

"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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines