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

Apply JavaScript automatically to newly created/converted PDFs

Community Beginner ,
Nov 09, 2021 Nov 09, 2021

Hello,
Was wondering if Adobe Acrobat has the functionality to automatically apply the JavaScript to every new created document or better yet to all PDF that is converted from Excel?

Worst case would require applying the JS to the individual PDF. However, couldn’t see any way to store JS for it to applied efficiently apart from manually.

 

if (app.alert("TEST.",2,1)!=1) this.closeDoc(true);

TOPICS
Create PDFs , JavaScript
401
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 09, 2021 Nov 09, 2021

No, it's not possible. You can use an Action Wizard to process multiple files, but there's no command to automatically embed a script in a file as it is created.

View solution in original post

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 09, 2021 Nov 09, 2021

No, it's not possible. You can use an Action Wizard to process multiple files, but there's no command to automatically embed a script in a file as it is created.

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 Beginner ,
Nov 10, 2021 Nov 10, 2021
LATEST

Thank for your reply and the potential solution to my 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