My problem was in the WriteHTML class. It didn't support UL LI tags, so I used this instead:
http://fpdf.de/downloads/addons/53/
I stripped the createPDF class, in the class PDF extends FPDF I removed $_title, $_url, $_debug=false
from the PDF function, I also removed $bi
from the write HTML function and inside the writeHTML function I removed:
$this->bi=$bi;
if ($bi)
$html=strip_tags($html, "<a><img><p>
<font><tr><blockquote><h1><h2><h3><h4><pre><red><blue><ul><li><hr><b><i><u><strong><em>");
I hope this helps people who are trying to render HTML before putting it onto PDF