| ▲ | barishnamazov 8 hours ago | |||||||||||||||||||
CSS rules for printing is one of my favorite features of the web. You get a powerful typesetter directly in your browser. For those wondering how it's done, I wrote about it [0] recently for my friends who frequently asked how I generated PDFs for my blogs. [0] https://barish.me/blog/make-your-website-printable-with-css/ | ||||||||||||||||||||
| ▲ | sandreas 7 hours ago | parent | next [-] | |||||||||||||||||||
Thank you for the nice (and still short) article - I really liked it. However, while these rules apply for web pages, I would like to... let's say warn all developers expecting CSS is a good option for accurate printing. It may work for single page printouts or "make this page more printable" approaches, but don't expect it to be an easy opt out of providing PDFs for every single use case. CSS for printing gets annoying pretty quick as soon as you have some more sophisticated requirements. You should probably also know that print-CSS is not fully cross browser compatible - there are quirks and caveats for every single one of them regarding font sizing, margin, padding and page-layouts. I would not recommend to use HTML + CSS for something that really needs to be exactly the same layout in every browser. | ||||||||||||||||||||
| ||||||||||||||||||||
| ▲ | Brajeshwar 7 hours ago | parent | prev | next [-] | |||||||||||||||||||
Gutenberg[1] Print Styles has been my go-to for a very long time. If I remember correctly, the issues I faced was that I could not control pagination. | ||||||||||||||||||||
| ||||||||||||||||||||
| ▲ | voussoir 7 hours ago | parent | prev [-] | |||||||||||||||||||
Neat, I did one of these too :) | ||||||||||||||||||||