3 ms·
You can use CSS page sizing as well, passing it via meta isn't required. https://docs.breezypdf.com/metadata#use-css-for-page-size https://docs.breezypdf.com/m
by deedubaya 8y ago
You can use CSS page sizing as well, passing it via meta isn't required.
https://docs.breezypdf.com/metadata#use-css-for-page-size https://docs.breezypdf.com/metadata#use-css-for-page-size
Headers/and footers are just HTML strings and can be super rich with images etc and customized with CSS. Page numbering is free as well in headers/footers.
Of course you could just use properly positioned <header> and <footer> tags and do whatever you need to with JS for page numbering.
- jim-a-1020401 8y agoThat's good for page sizing but as other comments on this thread noted, no browsers seem to have proper support for CSS paged media including Chrome. When I tested it, none of the @bottom type stuff or other print/page related CSS worked at all which is why I ended up with Weasyprint since it has it's own engine (and is really great). Example of some more paged media stuff not supported by Chrome; https://www.smashingmagazine.com/2015/01/designing-for-print-with-css/ https://www.smashingmagazine.com/2015/01/designing-for-print.... Another thing Weasyprint does really well which surprised me is automatically carrying over table headers onto subsequent pages when a table is split across pages, which is really nice.