Class PdfSignatureExtensions
A class that represents a PDF signing certificate (.PFX or .p12) format which can be used to digitally sign a PDF. This protecting it from alteration.
Inheritance
System.Object
PdfSignatureExtensions
Namespace: IronPdf.Signing
Assembly: IronPdf.dll
Syntax
public static class PdfSignatureExtensions : Object
Methods
SignPdfFile(PdfSignature, String, Boolean, String, String)
Signs an existing PDF file.
Declaration
public static bool SignPdfFile(this PdfSignature signature, string pdfFilePath, bool removeOldSignatures = false, string userPassword = null, string ownerPassword = null)
Parameters
Type | Name | Description |
---|---|---|
PdfSignature | signature | |
System.String | pdfFilePath | The PDF file path. |
System.Boolean | removeOldSignatures | if set to |
System.String | userPassword | Optional user password if the PDF document is encrypted. |
System.String | ownerPassword | Optional owner password if the PDF document is encrypted. |
Returns
Type | Description |
---|---|
System.Boolean |
|