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

Open a PDF with javascript enabled (even if it is disabled in the registry)

New Here ,
Nov 12, 2024 Nov 12, 2024

On company computers Javascript execution in Acrobat is disabled by default (in registry bDisableJavaScript -Value '1') BUT... we have a custom application that needs to run certain PDF files allowing Javascript execution.
At the moment the user has to allow the javascript manually when opening the file, by clicking on the top bar.
Is there a way for the application to open the file passing the instruction not to block javascript ?

thank you!

TOPICS
JavaScript , PDF
631
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
1 ACCEPTED SOLUTION
Community Expert ,
Nov 12, 2024 Nov 12, 2024
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 ,
Nov 12, 2024 Nov 12, 2024

Not possible.

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 ,
Nov 12, 2024 Nov 12, 2024

If there were a script to allow JavaScript to run, it wouldn't run while JavaScript is disabled.

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 ,
Nov 12, 2024 Nov 12, 2024
LATEST

There is a way to set a JavaScript requirement in the PDF so that Acrobat will warn the user about JavaScript in the document not running. 

The requirements are set with a script run from the console window. 

 

https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/doc.html#addrequirement

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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