IRONSOFTWAREHOME

Applying Digital Signatures in IronPDF

Curtis Chau
Curtis Chau
Updated: July 21, 2026

A digital signature is a cryptographic method that can be added to existing PDF documents using the IronPDF library. This includes adding single and multiple signatures with incremental savings signatures.

Supported digital signature certificate

IronPDF supports digital signature certificates in the .pfx format for Windows and .p12 format for MacOS. These are compliant with the X509Certificate2 standard. You can verify the format of your existing digital signature certificate by checking its file extension.

If you do not have a certificate in the required format, refer to this documentation to create a new X509Certificate2 standard certificate. The resulting certificate can then be used and applied to a PDF document via IronPDF.

Please note: IronPDF only supports X509KeyStorageFlags.Exportable. Some certificates have KeyStorageFlags set to Exportable by default. Attempting to use different KeyStorageFlags will result in an exception being thrown.

Signature with image

An image can be added to the PDF document to visually indicate that the document has been digitally signed. This can be achieved using IronPDF with the following code snippet:

// Create a PdfSignature object by specifying the certificate file (.pfx) and its password
var sig = new PdfSignature("IronSoftware.pfx", "123456");

// Set the signature image which includes the image path, page number, and its position in the document
sig.SignatureImage = new PdfSignatureImage("IronSoftware.png", 0, new Rectangle(0, 600, 100, 100));

Ensure that the image file property is set to "CopyToOutputDirectory=always" in the project so that the image can be found and rendered in the PDF document once the signature has been applied.

To learn more about applying digital signatures via IronPDF, check out Digitally Sign a PDF Document.

For engineering support, please see How to Make an Engineering Support Request for IronPDF.

Curtis Chau
Technical Writer

Curtis Chau holds a Bachelor’s degree in Computer Science (Carleton University) and specializes in front-end development with expertise in Node.js, TypeScript, JavaScript, and React. Passionate about crafting intuitive and aesthetically pleasing user interfaces, Curtis enjoys working with modern frameworks and creating well-structured, visually appealing manuals.

...
Read More

Ready to Get Started?

Nuget Downloads 21,062,892Version:2026.9just released

Get your free 30-day Trial Key instantly.
No credit card or account creation required
C# NuGet Library for PDF
Install with NuGet

Version: 2026.9

PM > Install-Package IronPdf
nuget.org/packages/IronPdf/
  1. In Solution Explorer, right-click References, Manage NuGet Packages
  2. Select Browse and search "IronPdf"
  3. Select the package and install
C# PDF DLL
Download DLL

Version: 2026.9

or download Windows Installer here.

  1. Download and unzip IronPDF to a location such as ~/Libs within your Solution directory
  2. In Visual Studio Solution Explorer, right click References. Select Browse, "IronPdf.dll"

Licenses from $999

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

OR
bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required
C# NuGet Library for PDF
Install with NuGet

Version: 2026.9

PM > Install-Package IronPdf
nuget.org/packages/IronPdf/
  1. In Solution Explorer, right-click References, Manage NuGet Packages
  2. Select Browse and search "IronPdf"
  3. Select the package and install
C# PDF DLL
Download DLL

Version: 2026.9

or download Windows Installer here.

  1. Download and unzip IronPDF to a location such as ~/Libs within your Solution directory
  2. In Visual Studio Solution Explorer, right click References. Select Browse, "IronPdf.dll"

Licenses from $999