Create pdf form with checkbox with pdf sdk is simple to apply in VBScript if you use these source codes below. ByteScout PDF Suite is 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 be applied to create pdf form with checkbox with pdf sdk using VBScript.
The SDK samples given below describe how to quickly make your application do create pdf form with checkbox with pdf sdk in VBScript with the help of ByteScout PDF Suite. 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. This basic programming language sample code for VBScript will do the whole work for you to create pdf form with checkbox with pdf sdk.
If you want to try other source code samples then the free trial version of ByteScout PDF Suite is available for download from our website. Just try other source code samples for VBScript.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
' 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
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: