These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Certificate Information

vbProgrammer
Registered: Jan 10 2007
Posts: 8

Hello Agian,
The following snippet of code taken and slightly modified from the javascript developer reference guide enables the extraction of certificate information. So they do provide a way to get to the issuer of the certificate, the CA. -->
// Obtain the signature field:
var f = this.getField("signature2");
// Validate the signature field:
var status = f.signatureValidate();
// Obtain the signature information
var sigInfo = f.signatureInfo();
// Check the status returned from the validation:
if (status < 3)
var msg = "Signature is not valid: " + sigInfo.certificates[1];
else
var msg = "Signature is valid: " + sigInfo.certificates[1];
// Display the status message:
console.println(msg);
 
So we can clearly access the certificate data. How do I run this script from outside the acrobat javascript editor in an automated fashion and apply it to infanitly many files?

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
That's not the part you can't do. You can't use Acrobat as a server. That's a legal restriction, not a technical one.

But if you want to go ahead with this then take a look at the Acrobat IAC interface. This is how you control Acrobat from an external application. You can find the documentation at:

[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://partners.adobe.com/public/developer/en/acrobat/sdk/
pdf/javascript/AcroJS.pdf]Acrobat JavaScript Reference[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script