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

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

New Here ,
Nov 12, 2024 Nov 12, 2024

Copy link to clipboard

Copied

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

Views

238

Translate

Translate

Report

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

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Not possible.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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