How to count number of signature fields on pdf document with javascript?

New Here ,
Dec 13, 2018 Dec 13, 2018

Copy link to clipboard

Copied

How can i count the number of signatures on a pdf document? and perform some action when the last signature is signed, say save the signed doc to another location in the back ground....

TOPICS
Acrobat SDK and JavaScript, Windows

Views

145

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
community guidelines
Most Valuable Participant ,
Dec 13, 2018 Dec 13, 2018

Copy link to clipboard

Copied

(Glad to see you followed my advice about posting here)

Are those Digital Signature fields? If so, you can use a script to check their values. If it's not null then they are signed.

So let's say you have 3 such fields. You can add a script to their Signed events that check the values of the other two. If they are both signed then you can proceed to save the form to the desired location. That latter will require installing a script on the local machine, though. See this tutorial for more help with that: https://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

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
community guidelines
New Here ,
Dec 13, 2018 Dec 13, 2018

Copy link to clipboard

Copied

Hi

as you may have gathered by now, i am looking for function which i can

write as a javascript add in to adobe that's able to count the number of

signed signature.

if all signatures are signed copy to another location.The problem is i wont

know how many signatures a particular document has?

by way of example: the interview score form for example is based on the

panel of interviewers and all need to sign once they have evaluated the

candidate,

a policy needs only one signature the one from the CEO, whilst a procedure

only needs one from the departmental head or whilst a dismissal form has

say six depending on the disciplinary panel that available, or say a

incident report has the details of the incident, witnesses if available and

the HOD, so this signatures on the forms vary.

As you can see, i don't know how many signatures a particular document will

have and thus need to solve this pro grammatically and copy file to

designated location once final signature is signed.

i have already written the windows service to sort the files in the folder

to which they will be copied. i am using a C# windows service which just

sorts the files based on thier corporate ID number to the departments it

belongs.

any help would be helpful or advice. i have gone through your example and

it seems i need to know the number of signatures for your solution to work

in my situation.

Thank for all the help you have provided so far, really appreciate it..

cheers

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
community guidelines
Most Valuable Participant ,
Dec 13, 2018 Dec 13, 2018

Copy link to clipboard

Copied

Let's take a step back: How will the users sign the document, exactly?

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
community guidelines
New Here ,
Dec 13, 2018 Dec 13, 2018

Copy link to clipboard

Copied

they will be using digital signatures

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
community guidelines
Most Valuable Participant ,
Dec 13, 2018 Dec 13, 2018

Copy link to clipboard

Copied

LATEST

Digital signature fields? If so, you can use the method I've described. If you need help with the code let me know.

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