docs: def draw(self):
          """
          Render the content of the paragraph.
          """
  
          logger.debug("*** draw")
  
          if not self.text:
              return
  
          canvas = self.canv
          style = self.style
  
          canvas.saveState()
  
          # Draw box arround paragraph for debugging
          if self.debug:
              bw = 0.5
              bc = Color(1, 1, 0)
              bg = Color(0.9, 0.9, 0.9)
              canvas.setStrokeColor(bc)
              canvas.setLineWidth(bw)
              canvas.setFillColor(bg)
              canvas.rect(
                  style.leftIndent,
                  0,
                  self.width,
                  self.height,
                  fill=1,
                  stroke=1)
  
          y = 0
          dy = self.height
          for line in self.text.lines:
              y += line.height
              for frag in line:
  
                  # Box
                  if hasattr(frag, "draw"):
                      frag.draw(canvas, dy - y)
  
                  # Text
                  if frag.get("text", ""):
                      canvas.setFont(frag["fontName"], frag["fontSize"])
                      canvas.setFillColor(frag.get("color", style["color"]))
                      canvas.drawString(frag["x"], dy - y + frag["y"], frag["text"])
  
                  # XXX LINK
                  link = frag.get("link", None)
                  if link:
                      _scheme_re = re.compile('^[a-zA-Z][-+a-zA-Z0-9]+$')
                      x, y, w, h = frag["x"], dy - y, frag["width"], frag["fontSize"]
                      rect = (x, y, w, h)
                      if isinstance(link, six.text_type):
                          link = link.encode('utf8')
                      parts = link.split(':', 1)
                      scheme = len(parts) == 2 and parts[0].lower() or ''
                      if _scheme_re.match(scheme) and scheme != 'document':
                          kind = scheme.lower() == 'pdf' and 'GoToR' or 'URI'
                          if kind == 'GoToR':
                              link = parts[1]
  
                          canvas.linkURL(link, rect, relative=1, kind=kind)
                      else:
                          if link[0] == '#':
                              link = link[1:]
                              scheme = ''
                          canvas.linkRect("", scheme != 'document' and link or parts[1], rect, relative=1)
  
          canvas.restoreState()