2 ms·
You'd be a hero to a lot of people for supporting that. Current options for basic PDF reports suck. You essentially have to run Chrome (at scale possibly) for s
by RamblingCTO 2y ago
You'd be a hero to a lot of people for supporting that. Current options for basic PDF reports suck. You essentially have to run Chrome (at scale possibly) for such a basic use case.
- nicoburns 2y agoIt's kinda early, but we're looking at collaborating with https://typst.app/ https://typst.app/ (a modern LaTeX alternative) on this. They already have some of the low-level PDF writing infrastructure in place, and are working on something higher-level that we're hoping to use. (you could also look at using Typst directly if you're not tied to HTML)
- nine_k 2y agoBTW why not render things in SVG and convert to.PDF then? It would certainly require you to compute your own layout, but you.normally want that in a tabular report anyway. The rendering would not involve invoking a web browser though.
- rescbr 2y agoI second this suggestion. For one use-case that it’s just a single page, I’m using SVG + rsvg-convert.
- Semaphor 2y agoWeasyprint [0] works pretty well for us. Especially for basic things, it does everything. It’s only lacking some very advanced CSS Print features. [0]: https://doc.courtbouillon.org/weasyprint/stable/ https://doc.courtbouillon.org/weasyprint/stable/