J A V A S C R I P T     I N T E G R A T I O N     S A M P L E     FOR BROWSER PLUGIN REPLACEMENT

PDF Signature for File Input with Visual Representation

Sample demonstrates digital signing of an PDF document with settings for the visual representation of a digital signature.

Click the Sign button.

Click the Verify.

Prerequisites:

  • proXSign browser plugin replacement installed and running
  • provide input file c:/test.pdf and adjust output file location to file://C:/Users/[username]/Documents/test.pdf. Write permission is required for output. Supported PDF versions are 1.3 and 1.4
  • the location to the file is supported just from local machine (like C:/test.pdf). The file path through https is not supported.

File path to the PDF:
   
 
Search fields (if all empty, a dialog to choose the certificate will be displayed):
Subject:
Issuer:
Serial*:
Comment*: Serial must be used in combination with Issuer.
Hash:
Hash Base64:
 
Visual presentation parameters
Page number:
Left edge distance (position X)
Bottom edge distance (position Y)
Width
Height
Background color(R/G/B 0-255) / /

Image base64:
You can use the PDFImgUtility.exe tool to convert your image from jpeg format to binary format.

Displayed image:
 
 

Signed file location

   
 
 
Result of signature verification:
Status:
Signature count:
Signature status:
Signature field:
Reason:
Contact:
Location:
Time:
Document revision:
 

Certificate information:

Subject:
Issuer:
Serial:
Hash:
Hash Base64: