Interesting stuff , thx for sharing all ...
Haven’ t worked with html2pdf ... but did work with fpdf (
http://www.fpdf.de/) (one part of html2(f)pdf) ... and ufpdf (
http://acko.net/node/56) ...ufpdf is based on fpdf but does unicode a lot better ... the rest is the same so here is the documentation :
http://www.fpdf.org/en/doc/index.php
I used getdocumentvariables and then the functions of ufpdf to generate the pdf rather than convert HTML ...
I will look into the ’sanitize’ included in html2pdf because from time to time i ran into PDF’s with empty pages (due to some error)