issue #122 HTML rendering in PDF correctly