Using HtmlWorker to parse HTML snippets and convert to PDF