php - generate pdf with html table and save it on file server
<p>I am working with a tool which lets user upload a <code>.csv</code> file.
That <code>csv</code> file contains an address column. I have to use the address from each row in another HTML template. That HTML template is <a href="http://patentimages.storage.googleapis.com/US7844553B2/US07844553-20101130-D00000.png" rel="nofollow noreferrer">like this</a> 
.  After creating that template I then need to convert it into a PDF, store the PDF on a file server and give the user a link to the PDF.  </p>

<p>I've finished the first two steps - <code>csv upload</code> and <code>created complete template with address</code>, but I'm stuck on how I can convert a template into a PDF.  </p>

<p>I have looked into a few php-pdf libraries like <code>fpdf</code> <code>mpdf</code>. I'm facing a problem in creating pdf with html template.  </p>