Copy link to clipboard
Copied
I have a PDF form and want to add a button to prompt "save as" and auto populate the file name based on 2 fields from my form. The user will then select the folder that the file will be saved.
any help would be appreciated.
Copy link to clipboard
Copied
Unfortunately this type of functionality is not easily implemented with a PDF.
Please read this article on how to save a PDF with a script:
https://www.pdfscripting.com/public/How-to-Save-a-PDF-2.cfm
Copy link to clipboard
Copied
You would have to use the app.browseForDoc method to simulate a "Save As" browse window (the file window says "Save As", allows a default file name that the user can change, and lets the user select the file location), then pull the path from the result and use doc.saveAs. Unfortunately, browseForDoc and saveAs (silently) are privileged, so all users would need a trusted function in a document level script.
Copy link to clipboard
Copied
See this recent discussion of the same question: https://community.adobe.com/t5/acrobat-discussions/create-a-save-as-button-in-a-form-that-calls-on-a...
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more