VB.NET PDF: How to HTML5 PDF Viewer PDF Create PDF Export File & Page Process PDF Read PDF Write Form Process Document Protect Annotation & Drawing PDF Print WPF PDF Viewer Work with Other SDKs Barcode Read Barcode Create OCR Twain
Edit Digital Signatures
Home ›› XDoc.PDF ›› VB.NET PDF: Edit PDF Digital Signature

VB.NET PDF - Add Digital Signatures to PDF in VB.NET

Guide VB.NET Programmers to Improve the Security of Your PDF File by Adding Digital Signatures in VB.NET

Look for HTML5 PDF Editor?

EdgePDF: ASP.NET PDF Editor is the best HTML5 PDF Editor and ASP.NET PDF Viewer based on XDoc.PDF, JQuery, HTML5. It supports ASP.NET MVC and WebForms projects.

VB.NET users may hope their copyright to be respected, XDoc.PDF also allows PDF such security setting via digital signature. By using it in your VB.NET application, you can easily do following things.

Add a signature or an empty signature field in any PDF file page

Search unsigned signature field in PDF document

Prepare a certification which used to sign a document

Verify the validity of PDF signature

Use VB.NET Demo to Sign Your PDF Document

Add necessary references:









Use corresponding namespaces;

  using RasterEdge.Imaging.Basic;

  using RasterEdge.XDoc.PDF;

This is a simple VB.NET demo that explains how to sign your PDF document using XDoc.PDF.

Dim inputFilePath As String = "..."
Dim outputFilePath As String = "..."
Dim imagePath As String = "..."
Dim certSubjectName As String = "..."
Dim fieldID As String = "..."

Dim cert As X509Cert = PDFDigitalSignatureHandler.MakeCert(StoreName.My, StoreLocation.CurrentUser, certSubjectName)

' Set cert properties.
cert.Location = "CHINA SHANGHAI"
cert.Reason = "Reason"
cert.APMode = APMode.Text   ' APMode.Text | APMode.Image.
cert.Image = New Bitmap(imagePath)

If PDFDigitalSignatureHandler.Sign(inputFilePath, outputFilePath, cert, fieldID) = 0 Then
End If