Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column
width50%
Panel
titleBGColor#B0C4DE
titleContents Summary
Table of Contents
stylenone
outlinetrue
typelist
Column
width15%
 
Column
width35%
 
Info

The source code in below examples uses some methods/classes defined in Common Utilities

...

  • Configure the storage paths, create and populate the object of SignatureConfig
  • Instantiate the signature handler, by passing SignatureConfig
  • Initialize an object to setup digital verification options of a word document using WordsVerifyDigitalOptions("Name.cer")
  • Setup digital verification options
  • Verify document using handler.Verify("File to be verified", verifyOptions)
  • Display verification result

The Code

HTML

<script src="https://gist.github.com/GroupDocsGists/f6cb49868e448cc642cba5e387114962.js"></script>

...

  • Configure the storage paths, create and populate the object of SignatureConfig
  • Instantiate the signature handler, by passing SignatureConfig
  • Initialize an object of class WordsVerifyDigitalOptions by passing .pfx certificate using WordsVerifyDigitalOptions("CertName.pfx") and setting password of the .pfx certificate in the Password property of the object
  • Initialize an object of class WordsVerifyDigitalOptions by passing .cer certificate using WordsVerifyDigitalOptions("CertName.cer")
  • Setup VerifyOptionsCollection by passing both WordsVerifyDigitalOptions objects
  • Verify document using handler.Verify("File to be verified", verifyOptions)
  • Display verification result

The Code

HTML

<script src="https://gist.github.com/GroupDocsGists/66e1a68ec4894ba54e7267d42ee284ca.js"></script>

Digital Verification of Word Documents With Extended Options

The Recipe

  • Configure the storage paths, create and populate the object of SignatureConfig
  • Instantiate the signature handler, by passing SignatureConfig
  • Initialize an object of class WordsVerifyDigitalOptions by passing .cer certificate
  • Set setComments property to text
  • Set setSubjectName property to text
  • Set setIssuerName property to text
  • Set setSignDateTimeFrom property to Date
  • Set setSignDateTimeTo property to Date
  • Verify document
  • Display verification result

The Code

HTML
 <script src="https://gist.github.com/GroupDocsGists/1581707b68c15a5124874c9689d931f9.js"></script>