These source code samples are assembled by their programming language and functions they apply. ByteScout Premium Suite: the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can sign pdf with pdf sdk in VB.NET.
This prolific sample source code in VB.NET for ByteScout Premium Suite contains various functions and other necessary options you should do calling the API to sign pdf with pdf sdk. Simply copy and paste in your VB.NET project or application you and then run your app! If you want to use these VB.NET sample examples in one or many applications then they can be used easily.
Our website gives trial version of ByteScout Premium Suite for free. It also includes documentation and source code samples.
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 Premium Suite Home Page
Explore ByteScout Premium Suite Documentation
Explore Samples
Sign Up for ByteScout Premium Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout Premium Suite Home Page
Explore ByteScout Premium Suite Documentation
Explore Samples
Sign Up for ByteScout Premium Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: