Source code documentation samples give simple and easy method to install a needed feature into your application. Want to sign pdf with pdf sdk in your VB.NET app? ByteScout PDF Suite is designed for it. ByteScout PDF Suite is the set that includes 6 SDK products to work with PDF from generating rich PDF reports to extracting data from PDF documents and converting them to HTML. This bundle includes PDF (Generator) SDK, PDF Renderer SDK, PDF Extractor SDK, PDF to HTML SDK, PDF Viewer SDK and PDF Generator SDK for Javascript.
This prolific sample source code in VB.NET for ByteScout PDF Suite contains various functions and other necessary options you should do calling the API to sign pdf with pdf sdk. Follow the instructions from scratch to work and copy the VB.NET code. Want to see how it works with your data then code testing will allow the function to be tested and work properly.
All these programming tutorials along with source code samples and ByteScout free trial version are available for download from our website.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
Imports System.Drawing
Imports Bytescout.PDF
''' <summary>
''' This example demonstrates how to digitally sign PDF document.
''' </summary>
Class Program
Shared Sub Main()
' Create new document
Dim pdfDocument = New Document()
pdfDocument.RegistrationName = "demo"
pdfDocument.RegistrationKey = "demo"
' Add page
Dim page = New Page(PaperFormat.A4)
pdfDocument.Pages.Add(page)
' Add sample page content
Dim brush = New Bytescout.PDF.SolidBrush()
Dim font = New Bytescout.PDF.Font("Arial", 16)
Dim rect = New RectangleF(0, 50, page.Width, 100)
Dim stringFormat = New Bytescout.PDF.StringFormat()
stringFormat.HorizontalAlign = HorizontalAlign.Center
page.Canvas.DrawString("Signature Test", font, brush, rect, stringFormat)
' Signing parameters
Dim certficateFile = ".\demo_certificate.pfx"
Dim certficatePassword = "123"
' Optional parameters
Dim signingReason = "Approval"
Dim contactName = "John Smith"
Dim location = "Corporate HQ"
' Invisible signature
'pdfDocument.Sign(certficateFile, certficatePassword)
' Visible signature
Dim signatureRect = New RectangleF(400, 50, 150, 100)
pdfDocument.Sign(certficateFile, certficatePassword, signatureRect, signingReason, contactName, location)
' Save document to file
pdfDocument.Save("result.pdf")
' Cleanup
pdfDocument.Dispose()
' Open document in default PDF viewer application
Process.Start("result.pdf")
End Sub
End Class
60 Day Free Trial or Visit ByteScout PDF Suite Home Page
Explore ByteScout PDF Suite Documentation
Explore Samples
Sign Up for ByteScout PDF Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout PDF Suite Home Page
Explore ByteScout PDF Suite Documentation
Explore Samples
Sign Up for ByteScout PDF Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: