[pdf2html] fixed bugs