News for hackers. Stuff that matters.
Re:Ask HN: Recommendations for generating pdf/docx reports i... by jamespaden on Thursday October 17, 2019 @11:48AM (#21283293)
Those things can be really difficult with the browser-based libraries because the browsers don't yet (and seemingly never will) support CSS Paged Media. That's why commercial engines like Prince and DocRaptor (which uses Prince) exist. These engines were designed for document generation and have much better support for headers/footers, table of contents, page numbers, etc, etc..

Disclaimer: I work for DocRaptor

https://drafts.csswg.org/css-page-3/

Re:Ask HN: Recommendations for generating pdf/docx reports i... by gitgud on Thursday October 17, 2019 @05:02PM (#21286334)
Yes I've only just learnt about the paged media proposal, sounds like a useful api...

I would prefer if the report generating technology is server-based, as we can't guarantee what apis the browser will have...

Thanks anyway, I'll check out docraptor