Need help converting HTML documents to PDF? This reference guide shows by example how to use XSLT templates to convert 45 commonly used HTML elements to formatting objects (from the XSL-FO vocabulary) for easy transformation to PDF using XSLT.
f you're going to use widths in pixels, do remember that the default
target-resolution for PDF is 72dpi, which may or may not match the
resolution of your image. Recalculating the px-widths into something
more absolute is recommended for predictable results.