ByteScout PDF Suite - VBScript - Create list box in pdf form with pdf sdk - ByteScout

ByteScout PDF Suite – VBScript – Create list box in pdf form with pdf sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Suite – VBScript – Create list box in pdf form with pdf sdk

How to create list box in pdf form with pdf sdk in VBScript and ByteScout PDF Suite

Step-by-step tutorial on how to create list box in pdf form with pdf sdk in VBScript

Quickly learn how to create list box in pdf form with pdf sdk in VBScript with this sample source code. ByteScout PDF Suite: the bundle that provides six different SDK libraries to work with PDF from generating rich PDF reports to extracting data from PDF documents and converting them to HTML. This bundle includes PDF (Generator) SDK, PDF Renderer SDK, PDF Extractor SDK, PDF to HTML SDK, PDF Viewer SDK and PDF Generator SDK for Javascript. It can create list box in pdf form with pdf sdk in VBScript.

Want to quickly learn? This fast application programming interfaces of ByteScout PDF Suite for VBScript plus the guidelines and the code below will help you quickly learn how to create list box in pdf form with pdf sdk. IF you want to implement the functionality, just copy and paste this code for VBScript below into your code editor with your app, compile and run your application. Use of ByteScout PDF Suite in VBScript is also described in the documentation included along with the product.

Our website gives trial version of ByteScout PDF 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)

ListBoxes.vbs
      
' This example demonstrates how to create a listbox. ' 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 list box, add items and make it multi-selectable Set listBox1 = comHelpers.CreateListBox(20, 20, 120, 80, "listBox1") listBox1.Items.Add("Value 1") listBox1.Items.Add("Value 2") listBox1.Items.Add("Value 3") listBox1.Items.Add("Value 4") listBox1.Items.Add("Value 5") listBox1.MultiSelect = True ' Decorate listbox listBox1.Font = comHelpers.CreateStandardFont(comHelpers.STANDARDFONTS_HELVETICA, 10) listBox1.FontColor = comHelpers.CreateColorRGB(0, 0, 128) listBox1.BorderColor = comHelpers.CreateColorRGB(0, 0, 128) listBox1.BackgroundColor = comHelpers.CreateColorRGB(240, 240, 255) listBox1.BorderWidth = 2 page1.Annotations.Add(listBox1) ' 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 PDF Suite Home Page

Explore ByteScout PDF Suite Documentation

Explore Samples

Sign Up for ByteScout PDF 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 PDF Suite Home Page

Explore ByteScout PDF Suite Documentation

Explore Samples

Sign Up for ByteScout PDF Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next