QUESTIONS OR COMMENTS ABOUT PRODUCTS? WRITE US AT SUPPORT@BYTESCOUT.COM OR USE THIS FORM

Example: using radio buttons in PDF documents generated with PDFDoc Scout library

How to add radio button controls to the page in PDF documents generated with PDFDoc Scout library

Download example source code: pdfdocscout_example_radio_buttons.zip (11,2 KB)

Screenshot (view produced pdf):

radio buttons in PDF document generated with PDFDoc Scout
 ' create PDFDoc object

 
Set PDFDoc = CreateObject("PDFDocScout.PDFDocument")

 
' initialize library

 
PDFDoc.InitLibrary "demo""demo"

 

 
' set output filename for PDF document

 
PDFDoc.OutputFileName "pdfdocscout_example_radio_buttons.pdf"

 
' automatically open generated PDF document in default PDF viewer application

 
PDFDoc.AutoOpenGeneratedPDF = true



 
' starts PDF document generation

 
PDFDoc.BeginDocument



 
' Add RadioButtons

 
PDFDoc.Page.AddRadioButton "DemoRadioButton"100100150110

 
PDFDoc.Page.AddRadioButton "DemoRadioButton2"100120150130

 

 
' close pdf document generation

 
PDFDoc.EndDocument



 
' disconnect from library

 
Set PDFDoc = Nothing

Download example source code: pdfdocscout_example_radio_buttons.zip (11,2 KB)

Tutorials: