Skip to main content
Chemtoli007
Known Participant
January 20, 2017
Answered

How to save PDF file by field name as filename using JavaScript button?

For example I need to save a PDF doc by Costumer Number (example; David Hass) and Request Number (example: 001-17) so when I click on JavaScript button Save by CN & RN, my PDF file should be saved on Desktop by name David Hass 001-17.

Thank you very much.

This topic is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
January 20, 2017

It's possible, but if you want this to happen silently then a script must be installed on the user's local machine.

Otherwise you can only suggest the file-name to the user, not enforce it.

3 replies

Karl Heinz  Kremer
Community Expert
Community Expert
January 20, 2017

Take a look at this tutorial, it explains the script that you need to install on every computer that needs to save a file:

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

Translate
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
January 20, 2017

It's possible, but if you want this to happen silently then a script must be installed on the user's local machine.

Otherwise you can only suggest the file-name to the user, not enforce it.

Translate
Chemtoli007
Known Participant
January 20, 2017

try67,

Could you please help me create the JavaScript for this purpose.

Thank you so much.

Translate