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

Pulling information from a digital certificate.

Participant ,
Feb 14, 2018 Feb 14, 2018

Copy link to clipboard

Copied

Ok, I've tried figuring this out so now I'm asking the experts.

Is there a way to pull information from a digital certificate and input that information into a text field?

When I look into the certificate viewer in the Details tab, I see the data I want.  It's included with other information...here's how it looks:

Name = Subject

Value = cn=lastname.firstname.middlename.1234567890

I want to pull the '1234567890' and input it into a text field.  I'm trying to eliminate the user from filling in the information. We are CONSTANTLY having to look up the information because they typed it in wrong.

Is this possible?

Thanks,

Brian

TOPICS
Acrobat SDK and JavaScript , Windows

Views

211

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
Community Expert ,
Feb 15, 2018 Feb 15, 2018

Copy link to clipboard

Copied

LATEST

Yes there is. The Acrobat JavaScript model has several properties/functions that provide security information.

For example, here's the entry in the JavaScript reference for the security object:

Acrobat DC SDK Documentation

But, digital certificates are usually in a signature field. If this is the case then this code returns the signature info object which is full of all kinds of stuff.

var sigInfo = getField( "Signature1" ).signatureInfo();

Look up the signature info object in the Acrobat JavaScript Reference.

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

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