title: Is there a current tutorial or howto document for using the xhtml2pdf python module?
body: <p>I can't seem to find a working tutorial or howto document for this module. Does one exist somewhere?</p>
  
  <hr>
  
  <p>The "To be completed" section here:
  <a href="https://github.com/chrisglass/xhtml2pdf/blob/master/doc/usage.rst" rel="nofollow">https://github.com/chrisglass/xhtml2pdf/blob/master/doc/usage.rst</a></p>
  
  <p>is buggy, and doesn't seem to contain working code. After corrections, this code sequence:</p>
  
  <pre><code>from xhtml2pdf import pisa as pisa
  filename = u'test.pdf'
  pdf = pisa.CreatePDF("Hello &lt;strong&gt;World&lt;/strong&gt;",file(filename, "wb"))
  pisa.startViewer(filename)
  </code></pre>
  
  <p>produces an empty test.pdf file (well, not exactly empty, it's a pdf file without content)</p>