title: Add text to existing PDF document in Python
body: <p><strike>I'm trying to convert a pdf to the same size as my pdf which is an A4 page.</p>
  
  <pre><code>convert my_pdf.pdf -density 300x300 -page A4 my_png.png
  </code></pre>
  
  <p>The resulting png file, however, is 595px × 842px which should be the resolution at 72 dpi.
  I was thinking of using PIL to write some text on some of the pdf fields and convert it back to PDF. But currently the image is coming out wrong.</strike></p>
  
  <p>Edit: I was approaching the problem from the wrong angle. The correct approach didn't include imagemagick at all.</p>