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

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

  • January 20, 2017
  • 2 replies
  • 1738 views

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 has been closed for replies.
Correct answer try67

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.

2 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

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.

Chemtoli007
Known Participant
January 20, 2017

try67,

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

Thank you so much.