Saving PDF Using Fields to Autoname

Community Beginner ,
May 10, 2018

Copy link to clipboard

Copied

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.

TOPICS
Acrobat SDK and JavaScript

Views

242

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Saving PDF Using Fields to Autoname

Community Beginner ,
May 10, 2018

Copy link to clipboard

Copied

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.

TOPICS
Acrobat SDK and JavaScript

Views

243

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 10, 2018 0
Engaged ,
May 10, 2018

Copy link to clipboard

Copied

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 ?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 10, 2018 0
Community Beginner ,
May 10, 2018

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 10, 2018 0
Adobe Community Professional ,
May 10, 2018

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 10, 2018 1
Community Beginner ,
May 11, 2018

Copy link to clipboard

Copied

Ok, I don't think adding a folder level script is an option as we are on a large network. How would the certification signature work?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 11, 2018 0
Adobe Community Professional ,
May 11, 2018

Copy link to clipboard

Copied

The idea is you that you digitally sign the document in Acrobat by adding a certification signature. The exact procedure depends on which version of Acrobat you're using. Each user of the form would then have to open the document, look at the certificate details, and choose to trust the certificate to "Execute high privileged Javascripts that are embedded in a certified document". Again, how this is done depends on the version of Acrobat/Reader the user has.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 11, 2018 0
Community Beginner ,
May 11, 2018

Copy link to clipboard

Copied

We use 11 Pro

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 11, 2018 0
Community Beginner ,
May 14, 2018

Copy link to clipboard

Copied

If we are using 11 Pro, how would this be done to execute the certificate?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 14, 2018 0