Skip to main content
Santiman21
Known Participant
May 10, 2018
Question

Saving PDF Using Fields to Autoname

  • May 10, 2018
  • 1 reply
  • 988 views

Hi all,

I want to the file to autoname itself based on a couple of filled fields as well as including a couple of standard texts so that it looks something like this:

Field1.Field2.Field3.StandardText.Field4

Is this possible? I also want it to include the periods between the field names.

This topic has been closed for replies.

1 reply

Inspiring
May 10, 2018

You mean you want the file name to update in regards to the value of certain fields?

You sort of wish to code a SaveAs function ?

Santiman21
Known Participant
May 10, 2018

Yes, that is absolutely right. I don't need it to look for a certain folder or anything, just to update the name depending on values.

Inspiring
May 11, 2018

It's possible, but in order to do a Save As, you need to include the code that does the saving in a folder-level JavaScript and install it on each machine the form will be used on. An alternative is to add a certification signature and each user would have to trust the certificate so that high privileged JavaScript is allowed. The code needed to do a Save As in the way you want has been posted here many times and is also in the Acrobat JavaScript documentation, but if you get stuck, post again.