Skip to main content
Participating Frequently
May 9, 2024 10:03 PM UTC
Question

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

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

13 replies

Participant
Jan 29, 2025 1:50 AM UTC

Same...

Translate
Known Participant
Dec 12, 2024 5:46 PM UTC

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.

Translate
try67
Community Expert
Community Expert
May 9, 2024 10:20 PM UTC

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?

Translate
Participating Frequently
May 9, 2024 10:28 PM UTC

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. 

Translate
try67
Community Expert
Community Expert
May 10, 2024 9:35 AM UTC

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

Translate