title: How to save a ReportLab Canvas as PNG image?
body: <p>I'm using reportlab to draw a PDF normaly used for printing. How can i save the canvas as a PNG image instead, without using additional binary tools to convert the generated pdf?</p>
  
  <p>I assume i need to convert it to a reportlab Drawing, but don't see a way to do so.</p>
  
  <pre class="lang-py prettyprint-override"><code>from reportlab.pdfgen import canvas
  c = canvas.Canvas("form.pdf", pagesize=(100, 50))
  c.drawString(20, 20, 'Example …')
  c.save()  # but as image
  </code></pre>