Skip to main content
This topic has been closed for replies.
Correct answer ls_rbls

I think it is possible with JavaScript but it is not a trivial task.

 

There is a tutorial on that by ACP Thom Parker floating around in these forums.

 

Even though Acrobat JavaScript provide a device independent path to save a file to a temporary generic location, the main issue is the operating system in use at the time of signing the file. Like for example, if it is  MS Windows or macOS on the users' end.

 

And  depending on the directory structure for their different build versions,  the user folder paths may pose some challenges during the saving of the file if you hard code a directory path in a script. That is just the tip of the iceberg.

2 replies

JR Boulay
Community Expert
Community Expert
October 16, 2020

I didn't quite understand the question but maybe you could use this new Acrobat feature to achieve your goals:

https://community.adobe.com/t5/acrobat/adding-bates-number-to-existing-file-names/td-p/11421690

Acrobate du PDF, InDesigner et Photoshopographe
Traci5FC3Author
Known Participant
October 16, 2020

Does Bates numbering have to be done manually? I was needing something that would automatically pull like maybe Javascript or Document action.

I have a PDF and when the file has been digitally signed I need it to save with CURRENTDATE/SOP No/Version No

 

The SOP No and Version No are in my document as text form fields

ls_rbls
Community Expert
Community Expert
October 17, 2020

These are ACP Thom Parker's tutorials that I was referring about: 

 

 

The links above are not related with Bates Numbering, but since you asked on how to save this file using the text string values of a couple of text field objects,  I am posting this info to reference what I said in my first answer.

ls_rbls
Community Expert
ls_rblsCommunity ExpertCorrect answer
Community Expert
October 16, 2020

I think it is possible with JavaScript but it is not a trivial task.

 

There is a tutorial on that by ACP Thom Parker floating around in these forums.

 

Even though Acrobat JavaScript provide a device independent path to save a file to a temporary generic location, the main issue is the operating system in use at the time of signing the file. Like for example, if it is  MS Windows or macOS on the users' end.

 

And  depending on the directory structure for their different build versions,  the user folder paths may pose some challenges during the saving of the file if you hard code a directory path in a script. That is just the tip of the iceberg.