Skip to main content
December 13, 2016
Question

I need help creating a script that automates digital signing of all pages in pdf documents in a specific location

  • December 13, 2016
  • 2 replies
  • 7242 views

I do not know anything about programming languages or scripting but I need assistance to perform a task if it's not too much to ask. I have Adobe Acrobat pro XI.

Basically I have the coordinates that I want the signature to be placed on each page in a pdf, I believe my customers want it to be a hand written from a file.

I would also need to password protect the file and overwrite it.  I know most people will say it's unnecessary to put a signature on each page but for our purposes it is a requirement.

I don't know where to begin, I basically researched a little and saw that some people are saying it can be done with a little scripting.

I downloaded the Java SDK but it isn't going to help me if I don't know what to do.

Any help is greatly appreciated.

This topic has been closed for replies.

2 replies

January 3, 2017

I am requesting help with finding a way to insert an electronic signature onto PDF copies of right of way map sets (multiple PDFs in one set).  We do not need to sign and seal, this would be for an electronic signature only. We were able to create an electronic signature in Adobe which included using a password to ensure security; however, the signature had to be scaled for each page, placed in the right position & then the file saved after each page was done.  It took an enormous amount of time for the map sets to be completed and the larger the file was, the longer it took for the process to be accomplished.  We would need for the signature to be placed electronically into existing PDF’s while maintaining the security of the signature.

This is straight from my customer, it is hard to know exactly what they want.

Joel Geraci
Community Expert
Community Expert
January 3, 2017

I've found that it helps to tell clients to let me worry about the solution implementation and to just tell me what they are trying to accomplish, what the inputs are, and what the characteristics of the outputs need to be. In this specific case, even if they really want what it is that they describe, they'll hate you if you actually gave it to them.

Were I in your position... before taking any money from this customer, I'd try to educate them as to exactly how digital signatures work in PDF and what the benefits and limitations are for JavaScript using Acrobat as the client. Then I'd provide guidance as to what a solution might look like and see if it matched their expectations. I've found that most customers who say they want electronic signatures have very specific ideas about what that is and those ideas bear little resemblance to what the industry or specific software implementations mean.

January 18, 2017

So, after weeks of trying to get a sit-down discussion I figure out that these needs are required:

-Every page of the document must be digitally signed, this is because from time to time they extract a select amount of pages from the PDF and they need to keep the same integrity. They are aware that the file size grows every time it changes, and do not wish to change this method.

-The signature field must be placed the same location on each page

-The document must be password protected.

I am not sure if this is entirely possible but would like if someone could explain anything that could be automated in this process, and if not please explain why so that I can give a detailed explanation to my customer.

try67
Community Expert
Community Expert
December 13, 2016

- You can add a signature field using the addField method.

- You can sign each signature field using the field's signatureSign method.

December 13, 2016

That's not what I'm asking.

Imagine you have a PDF. It has 100 pages, I don't want to create a form field and sign each one manually.

I need a script that performs the function so that when I open the PDF after the script it is signed in the same place on each page and password protected.

Please help me clarify if I am not being clear.

Inspiring
December 13, 2016

The digital signature applies to the entire PDF. It is not possible to sign each page and keep the signature on each page valid. Please read the documentation on digital certificates. Acrobat's digital certificate  complies with the UCC and many International Standards for digital certificates for business and legal purposes.