ByteScout PDF SDK - VBScript and VB6 - Create PDF Form with CheckBox - 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 PDF SDK – VBScript and VB6 – Create PDF Form with CheckBox

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF SDK – VBScript and VB6 – Create PDF Form with CheckBox

How to create PDF form with checkbox in VBScript and VB6 using ByteScout PDF SDK

This code in VBScript and VB6 shows how to create PDF form with checkbox with this how to tutorial

Create PDF form with checkbox is easy to implement in VBScript and VB6 if you use these source codes below. ByteScout PDF SDK can create PDF form with checkbox. It can be used from VBScript and VB6. 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.

The SDK samples like this one below explain how to quickly make your application do create PDF form with checkbox in VBScript and VB6 with the help of ByteScout PDF SDK. Just copy and paste the code into your VBScript and VB6 application’s code and follow the instruction. Detailed tutorials and documentation are available along with installed ByteScout PDF SDK if you’d like to dive deeper into the topic and the details of the API.

Free trial version of ByteScout PDF SDK is available on our website. Documentation and source code samples are included.

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

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

CheckBoxes.vbs
      
' This example demonstrates how to create checkboxes. ' 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 unchecked checkbox Set checkBox1 = comHelpers.CreateCheckBox(20, 20, 15, 15, "checkBox1") page1.Annotations.Add(checkBox1) ' Add checked checkbox Set checkBox2 = comHelpers.CreateCheckBox(20, 40, 15, 15, "checkBox2") checkBox2.Checked = True page1.Annotations.Add(checkBox2) ' Add readonly checkbox Set checkBox3 = comHelpers.CreateCheckBox(20, 60, 15, 15, "checkBox3") checkBox3.Checked = True checkBox3.ReadOnly = True page1.Annotations.Add(checkBox3) ' Draw text labels Set timesFont = comHelpers.CreateStandardFont(comHelpers.STANDARDFONTS_TIMES, 12) Set blackBrush = comHelpers.CreateSolidBrush(comHelpers.CreateColorGray(0)) page1.Canvas.DrawString "Unchecked box", (timesFont), (blackBrush), 45, 20 page1.Canvas.DrawString "Checked box", (timesFont), (blackBrush), 45, 40 page1.Canvas.DrawString "Read-only checked box", (timesFont), (blackBrush), 45, 60 ' 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 SDK Home Page

Explore ByteScout PDF SDK Documentation

Explore Samples

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

Explore ByteScout PDF SDK Documentation

Explore Samples

Sign Up for ByteScout PDF SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next