Saving & changing name of pdf Via Javascript/Button

Participant ,
Apr 05, 2021 Apr 05, 2021

Copy link to clipboard

Copied

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

Views

53

Likes

Translate

Translate

Report

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

correct answers 1 Correct Answer

Most Valuable Participant , Apr 06, 2021 Apr 06, 2021
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

Likes

Translate

Translate
Adobe Community Professional ,
Apr 05, 2021 Apr 05, 2021

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

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
Most Valuable Participant ,
Apr 06, 2021 Apr 06, 2021

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

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