Printstrap is a toolkit for taking HTML content of a document/article and rendering it into both a PDF file and a web page. This dual-rendering is useful for both:
- fast preview and debugging of how HTML will look in a PDF file (approximately) and
- making a document/article available as both a PDF file and an online web page.
Printstrap is engineered to work with WeasyPrint, but may work with other web-to-PDF generators. This toolkit consists of a CSS stylesheet that can be included in the HTML file passed to WeasyPrint.