title: Programmatically Generate PDF from HTML on iPhone
body: <p>I am looking for a way to programmatically (in obj-c) generate a PDF file from a local html file.  I am dynamically generating the html from user inputs, I need to create the PDF and send it to the user (via email).  I am having difficulty with the PDF generation portion.</p>
  
  <p>I have the code to create a PDF using <code>CGPDFContextCreateWithURL</code> but I am struggling with drawing the page using quartz.  </p>
  
  <p>I have searched extensively on SO as well as the internet to no avail. </p>
  
  <p>Any help is much appreciated!</p>