Migrate from WeasyPrint¶
Keep your HTML and CSS generation in the application. Start with a sample that exercises your paged-media rules, including running headers, page counters, breaks, custom fonts, and a table that flows across pages.
Check the native renderer first¶
pressjet check report.html
pressjet render report.html -o report.pdf
Review the supported print CSS and resolve resource or font reports before comparing layout. If a report depends on exact column widths, specify those widths and compare the first row on each page. For tagged or archival documents, validate the intended PDF profile.
Compare with the reference service¶
The optional WeasyPrint reference service accepts "engine": "reference" through the same PressJet API. It has its own input profile and restrictions. For an existing deployment, keep PDFs produced by your current WeasyPrint configuration as the baseline. Check the x-pressjet-engine response header so the comparison identifies each renderer.