←Select platform

SignDocument(string,string,string,string) Method

Summary

Adds a digital signature to a PDF document from a PFX file.

Syntax

C#
C++/CLI
Python
public static void SignDocument( 
   string fileName, 
   string password, 
   string signatureFileName, 
   string signaturePassword 
) 
public:  
   static void SignDocument( 
      String^ fileName, 
      String^ password, 
      String^ signatureFileName, 
      String^ signaturePassword 
   ) 

Parameters

fileName Name of the PDF file to be signed, the PDF document must be valid and exist.

password

The password to use if fileName_ contains an encrypted PDF file.

signatureFileName
Name of the file containing the digital signature. This should be a valid PFX file and cannot be null.

signaturePassword
The password to use if the PFX file requires one. Otherwise, null.

Remarks

SignDocument will add the PFX digital signature in  signatureFileName to an existing PDF file. Use ParsePages with the PDFParsePagesOptions.Signatures to read the digital signatures associated with a PDF document.

The application must ensure that digital signature is supported using PDFDocument.GetDigitalSignatureSupportStatus.

The PDF Forms Demo contains a full implementation of PDF signatures.

Requirements

Target Platforms

See Also

PDFFile Class

PDFFile Members

Leadtools.Pdf Namespace

Help Version 22.0.2023.7.10
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Pdf Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.