• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Saving PDF Using Fields to Autoname

Community Beginner ,
May 10, 2018 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

622

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
community guidelines
Engaged ,
May 10, 2018 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 ?

Votes

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
community guidelines
Community Beginner ,
May 10, 2018 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.

Votes

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
community guidelines
LEGEND ,
May 10, 2018 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.

Votes

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
community guidelines
Community Beginner ,
May 11, 2018 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?

Votes

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
community guidelines
LEGEND ,
May 11, 2018 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.

Votes

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
community guidelines
Community Beginner ,
May 11, 2018 May 11, 2018

Copy link to clipboard

Copied

We use 11 Pro

Votes

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
community guidelines
Community Beginner ,
May 14, 2018 May 14, 2018

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines