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):

checkboxes in produced PDF document
 ' 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"100100120110
 
PDFDoc.Page.AddCheckbox "DemoCheckBoxes2"100120120130

 
' 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: