update HTML for PDF rendering