- Home
- Testimonials
- Purchase
- Developer Tools
- Desktop Utilities
- Download
- Support
- Blog
- Company
Adding checkbox controls to the produced PDF document in PDFDoc Scout library
How to add checkboxes to the page in PDF created with PDFDoc Scout library:
Download example source code: pdfdocscout_example_check_boxes.zip (11,1 KB)
Screenshot (view produced pdf):

' create PDFDoc object
Set PDFDoc = CreateObject("PDFDocScout.PDFDocument")
' initialize library
PDFDoc.InitLibrary "demo", "demo"
' set output filename for PDF document
PDFDoc.OutputFileName = "pdfdocscout_example_check_boxes.pdf"
' automatically open generated PDF document in default PDF viewer application
PDFDoc.AutoOpenGeneratedPDF = true
' starts PDF document generation
PDFDoc.BeginDocument
' Add Checkbox's
PDFDoc.Page.AddCheckbox "DemoCheckBoxes", 100, 100, 120, 110
PDFDoc.Page.AddCheckbox "DemoCheckBoxes2", 100, 120, 120, 130
' close pdf document generation
PDFDoc.EndDocument
' disconnect from library
Set PDFDoc = Nothing
Set PDFDoc = CreateObject("PDFDocScout.PDFDocument")
' initialize library
PDFDoc.InitLibrary "demo", "demo"
' set output filename for PDF document
PDFDoc.OutputFileName = "pdfdocscout_example_check_boxes.pdf"
' automatically open generated PDF document in default PDF viewer application
PDFDoc.AutoOpenGeneratedPDF = true
' starts PDF document generation
PDFDoc.BeginDocument
' Add Checkbox's
PDFDoc.Page.AddCheckbox "DemoCheckBoxes", 100, 100, 120, 110
PDFDoc.Page.AddCheckbox "DemoCheckBoxes2", 100, 120, 120, 130
' close pdf document generation
PDFDoc.EndDocument
' disconnect from library
Set PDFDoc = Nothing
Download example source code: pdfdocscout_example_check_boxes.zip (11,1 KB)
Filed in:
PDFDoc Scout SDK
Tutorials:


