On this page you will learn from code samples for programming in VB.NET.Writing of the code to create button in pdf form with pdf sdk in VB.NET can be executed by programmers of any level using ByteScout Premium Suite. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can create button in pdf form with pdf sdk in VB.NET.
The following code snippet for ByteScout Premium Suite works best when you need to quickly create button in pdf form with pdf sdk in your VB.NET application. Follow the instructions from scratch to work and copy the VB.NET code. Enjoy writing a code with ready-to-use sample VB.NET codes.
The trial version of ByteScout Premium Suite can be downloaded for free from our website. It also includes source code samples for VB.NET and other programming languages.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
Imports Bytescout.PDF ''' <summary> ''' This example demonstrates how to create a button and decorate it. ''' </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) ' Create a button Dim button = New PushButton(50, 50, 100, 30, "button1") button.Caption = "Button" ' Decorate the button with various styles button.BackgroundColor = New ColorRGB(192, 192, 255) button.BorderWidth = 2 button.BorderStyle = BorderStyle.Beveled button.BorderColor = New ColorRGB(0, 0, 128) button.Font = New Font(StandardFonts.Times, 16) button.FontColor = New ColorRGB(0, 0, 0) button.HighlightingMode = PushButtonHighlightingMode.Outline ' Add button to the page page.Annotations.Add(button) ' Save document to file pdfDocument.Save("result.pdf") ' Cleanup pdfDocument.Dispose() ' Open document in default PDF viewer app 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: