ByteScout PDF SDK - VB.NET - Create Button in PDF Form - ByteScout

ByteScout PDF SDK – VB.NET – Create Button in PDF Form

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF SDK – VB.NET – Create Button in PDF Form

How to create button in PDF form in VB.NET with ByteScout PDF SDK

This tutorial will show how to create button in PDF form in VB.NET

Source code documentation samples provide quick and easy way to add a required functionality into your application. ByteScout PDF SDK is the SDK for pdf documents generation, modification and updates. Can also generate and fill PDF forms. Provides support for text (fonts, style, size, font family), layers, pdf form fields, vector and raster drawings. It can create button in PDF form in VB.NET.

Fast application programming interfaces of ByteScout PDF SDK for VB.NET plus the instruction and the code below will help you quickly learn how to create button in PDF form. Follow the instructions from the scratch to work and copy the VB.NET code. Code testing will allow the function to be tested and work properly with your data.

Trial version of ByteScout PDF SDK can be downloaded for free from our website. It also includes source code samples for VB.NET and other programming languages.

Try ByteScout PDF SDK today: Get 60 Day Free Trial or sign up for Web API

Program.vb
      
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

Try ByteScout PDF SDK today: 60 Day Free Trial (on-premise version) or sign up for Web API (on demand version)

VIDEO

ON-PREMISE VERSION

Get 60 Day Free Trial or Visit ByteScout PDF SDK page

Explore ByteScout PDF SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next