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

JavaScript per VBA doesn't work

New Here ,
Jul 26, 2018 Jul 26, 2018

Thank you for the support for insert a certificate

It works great when the script is executed in the JavaScript debugger.

Unfortunately it does not work if I the script using VBA with fields.ExecuteThisJavascript (jsCode) wants to start.

What could that be?

Security settings?

TOPICS
Acrobat SDK and JavaScript
650
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
Adobe Employee ,
Jul 26, 2018 Jul 26, 2018

I believe that is correct, due to security restrictions. Check the JavaScripts docs to be certain.

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
New Here ,
Jul 28, 2018 Jul 28, 2018

Thanks very much.

I've found that is the JavaScript in a protected folder like

C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\Javascripts

must be.

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 ,
Jul 28, 2018 Jul 28, 2018

These articles explain a bit about Acrobat scripting security:

https://acrobatusers.com/tutorials/trust-and-privilege-in-acrobat-scripts

https://acrobatusers.com/tutorials/using_trusted_functions

Instructions for Installing Folder Level Scripts (Automation Tools) and Plug-ins

Trust and Privilege in Acrobat Scripts

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
New Here ,
Jul 31, 2018 Jul 31, 2018
LATEST

Thank you very much.

In the meantime, I could solve the problem.

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