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

Saving PDF Using Fields to Autoname

Community Beginner ,
May 10, 2018 May 10, 2018

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
958
Translate
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

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 ?

Translate
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

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.

Translate
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

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.

Translate
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

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?

Translate
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

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.

Translate
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

We use 11 Pro

Translate
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
LATEST

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

Translate
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