fixed to work with new HTML2PDF library (FSPdf)