ByteScout Premium Suite - VB.NET - Add text field to pdf form with pdf sdk - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout Premium Suite – VB.NET – Add text field to pdf form with pdf sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – VB.NET – Add text field to pdf form with pdf sdk

How to add text field to pdf form with pdf sdk in VB.NET with ByteScout Premium Suite

Step-by-step tutorial on how to add text field to pdf form with pdf sdk in VB.NET

Quickly learn how to add text field to pdf form with pdf sdk in VB.NET with this sample source code. What is ByteScout Premium Suite? It is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can help you to add text field to pdf form with pdf sdk in your VB.NET application.

These VB.NET code samples for VB.NET guide developers to speed up coding of the application when using ByteScout Premium Suite. Simply copy and paste in your VB.NET project or application you and then run your app! Want to see how it works with your data then code testing will allow the function to be tested and work properly.

Trial version of ByteScout Premium Suite is available for free. Source code samples are included to help you with your VB.NET app.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.vb
      
Imports Bytescout.PDF ''' <summary> ''' This example demonstrates how text fields and theirs variations. ''' </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 simple text field with default properties Dim edit1 = New EditBox(20, 20, 120, 25, "editBox1") edit1.Text = "One two three" page.Annotations.Add(edit1) ' Add password box Dim edit2 = New EditBox(20, 50, 120, 25, "editBox2") edit2.Text = "password" edit2.Password = True page.Annotations.Add(edit2) ' Add multiline text field Dim edit3 = New EditBox(20, 80, 120, 50, "editBox3") edit3.Multiline = True edit3.Text = "The quick brown fox jumps over, the lazy dog." page.Annotations.Add(edit3) ' Demonstrate various decoration properties Dim edit4 = New EditBox(20, 135, 120, 30, "editBox4") edit4.Text = "Decorated text field" edit4.TextAlign = TextAlign.Right edit4.BackgroundColor = New ColorRGB(255, 240, 240) edit4.BorderWidth = 2 edit4.BorderStyle = BorderStyle.Dashed edit4.BorderColor = New ColorRGB(128, 0, 0) edit4.FontColor = New ColorRGB(128, 0, 0) edit4.Font.Size = 9 page.Annotations.Add(edit4) ' 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

ON-PREMISE OFFLINE SDK

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

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

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

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next