Skip to main content
Participating Frequently
May 9, 2024
Question

Javascript for Acrobat Pro (2024) v. Pro 2017 changes?

  • May 9, 2024
  • 3 replies
  • 2065 views

Adobe forced me into upgrading from Pro 2017 to the newest pro version (2024).  About 1/3 of my Actions Javascripts no longer work.  Was there changes to the language, and if so, where can I find samples of newer scripts?

example:  Paths pointing to folders no longer are recognized unless the pdf I am inserting is located in the same folder as the pdf that I am inserting into.

example:  The function "today" to insert today's date is no longer recognized.

 

Thank you

3 replies

Participant
January 29, 2025

Same...

Known Participant
December 12, 2024

Did you ever solve this? I am having the same issue. Script someone wrote for us was working for years and does not fully function in Acrobat 2024. Any insight would be helpful.  FYI I do not write javascript, but understand the functions.

try67
Community Expert
Community Expert
May 9, 2024

The only major changes were related to security, but that doesn't matter if the code runs in an Action, which is considered a privileged context. File-paths are handled exactly the same as before. There must be something else at play here. Are there any errors in the JS Console when you run these scripts?

Participating Frequently
May 9, 2024

I have not received any error messages.  No security in preferences. I tried running in the console and also with the new and old interface.  JS Console returns like it ran, and so does Action, but nothing happens.  I have been using these scripts in Pro2017 for about six years. 

try67
Community Expert
Community Expert
May 10, 2024

Can you share the code, or the Action file itself?