title: How to make Reportlab PDF interactive?
body: <p>I've been struggling with this problem for sometime now. The documentation is very poor, and there doesn't appear to be any examples.</p>
  
  <p>This code here, works perfectly fine.</p>
  
  <pre><code>path = "C:/Users/YourName/Desktop/"
  from reportlab.pdfgen.canvas import Canvas as can
  
  def greet(c):
      c.drawString(220, 700, "Reporting")
  c = can(path + "first.pdf")
  greet(c)
  c.showPage()
  c.save()
  </code></pre>
  
  <p>I'd like to generate a PDF that has an interactive checkbox you can tick, or a radio button, etc.
  I tried with the following code, but keep getting an <code>AttributeError</code>.</p>
  
  <pre><code>from reportlab.pdfgen.canvas import Canvas as can
  
  def welcome(c):
        import reportlab as rep
  
  
        rep.pdfbase.acroform.AcroForm.checkbox(rep.pdfbase.acroform.AcroForm, 
                                               name='CB0',tooltip='Field CB0',
                                               checked=True,
                                                x=72,y=72+4*36,
                                                buttonStyle='diamond',
                                                borderStyle='bevelled',
                                                borderWidth=2,
                                                borderColor="red",
                                                fillColor="green",
                                                textColor="blue",
                                                forceBorder=False)
  c3 = can(path + "story.pdf")
  welcome(c3)
  c3.showPage()
  c3.save()
  </code></pre>
  
  <p>I keep getting an <code>AttributeError: property object has no attribute _doc</code></p>
  
  <p>If I remove <code>rep.pdfbase.acroform.AcroForm</code> from the <code>checkbox</code> method, I'll get an error saying missing 1 positional argument required. It's for the "self" parameter.</p>
  
  <p>Any help would be greatly appreciated.</p>