Adjust pdf.html structure and style