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

Saving & changing name of pdf Via Javascript/Button

Participant ,
Apr 05, 2021 Apr 05, 2021

Is it possible to save and change the name of the pdf file using a button?

TOPICS
Create PDFs , Edit and convert PDFs , General troubleshooting , How to , JavaScript , PDF forms
1.6K
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 ,
Apr 06, 2021 Apr 06, 2021
LATEST

You can't change the name of a file, but you can save a copy of it under a new name.
However, this requires running the script from a special "trusted" context, such as a folder-level script.

See: https://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

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 ,
Apr 05, 2021 Apr 05, 2021

Yes, you can save the file with a new name.

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 ,
Apr 06, 2021 Apr 06, 2021
LATEST

You can't change the name of a file, but you can save a copy of it under a new name.
However, this requires running the script from a special "trusted" context, such as a folder-level script.

See: https://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

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