ByteScout Premium Suite - VBScript - Create text fields in pdf 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 – VBScript – Create text fields in pdf with pdf sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – VBScript – Create text fields in pdf with pdf sdk

How to create text fields in pdf with pdf sdk in VBScript and ByteScout Premium Suite

Learn to create text fields in pdf with pdf sdk in VBScript

An easy to understand guide on how to create text fields in pdf with pdf sdk in VBScript with this source code sample. Want to create text fields in pdf with pdf sdk in your VBScript app? ByteScout Premium Suite is designed for it. ByteScout Premium Suite is the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording.

These VBScript code samples for VBScript guide developers to speed up coding of the application when using ByteScout Premium Suite. Follow the instructions from scratch to work and copy the VBScript code. Applying VBScript application mostly includes various stages of the software development so even if the functionality works please test it with your data and the production environment.

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)

TextFields.vbs
      
' This example demonstrates how text fields and theirs variations. ' Create Bytescout.PDF.Document object Set pdfDocument = CreateObject("Bytescout.PDF.Document") pdfDocument.RegistrationName = "demo" pdfDocument.RegistrationKey = "demo" Set comHelpers = pdfDocument.ComHelpers ' Add page Set page1 = comHelpers.CreatePage(comHelpers.PAPERFORMAT_A4) pdfDocument.Pages.Add(page1) ' Add simple text field with default properties Set edit1 = comHelpers.CreateEditBox(20, 20, 120, 25, "editBox1") edit1.Text = "One two three" page1.Annotations.Add(edit1) ' Add password box Set edit2 = comHelpers.CreateEditBox(20, 50, 120, 25, "editBox2") edit2.Text = "password" edit2.Password = True page1.Annotations.Add(edit2) ' Add multiline text field Set edit3 = comHelpers.CreateEditBox(20, 80, 120, 50, "editBox3") edit3.Multiline = True edit3.Text = "The quick brown fox jumps over, the lazy dog." page1.Annotations.Add(edit3) ' Demonstrate various decoration properties Set edit4 = comHelpers.CreateEditBox(20, 135, 120, 30, "editBox4") edit4.Text = "Decorated text field" edit4.TextAlign = comHelpers.TEXTALIGN_RIGHT edit4.BackgroundColor = comHelpers.CreateColorRGB(255, 240, 240) edit4.BorderWidth = 2 edit4.BorderStyle = comHelpers.BORDERSTYLE_DASHED edit4.BorderColor = comHelpers.CreateColorRGB(128, 0, 0) edit4.FontColor = comHelpers.CreateColorRGB(128, 0, 0) edit4.Font.Size = 9 page1.Annotations.Add(edit4) ' Save document to file pdfDocument.Save("result.pdf") ' Open document in default PDF viewer app Set shell = CreateObject("WScript.Shell") shell.Run "result.pdf", 1, false

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