Copy link to clipboard
Copied
Hi all,
instead of the generic "Saves as" command available in the toolbar, can I add a customization or a command (I don't know, maybe a button) to a pdf module in order to save the pdf file using the value entered in a field? For instance: I have the text field "CODE" and I enter the value "1234", I would like that the save as command suggests me the file name "1234.pdf" as a default, the user can change the suggested file name if he wants.
Is it possible?
Thank you very much.
Paolo
Copy link to clipboard
Copied
No. You can either save the file automatically using that name (if a script is installed on the local computer), or you can suggest the desired file-name in a dialog that appears before the Save As dialog, but not within it.
Copy link to clipboard
Copied
<You can either save the file automatically using that name (if a script is installed on the local computer)>
What do you mean with "automatically"? Is it possible to get the name of the file from a field (or maybe more fields) of the module? Can you provide a sample script?
Thanks
Paolo
Copy link to clipboard
Copied
Automatically: Without user interaction beyond clicking the button. And yes, it can use the value of a field as the new file-name.
See this tutorial: https://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript
Find more inspiration, events, and resources on the new Adobe Community
Explore Now