Preferences

We use CSS paged media to create e-books and invoices (using weasyprint [0]). One of the most helpful resources for me was print-css.rocks [1], they cover a lot of what’s possible and include which tools support which parts of it (tools targeting paged media, browser support is essentially non-existent and outside using JS to fake it with paged.js, not relevant). The expensive tools tend to support more features, but thanks to some donations/sponsorships, weasyprint has really caught up and now supports a very large part of the spec.

> Especially in combination with headless browser pdf generation

I have no idea why you’d want to do that. Browsers are bad at it, dedicated tools are great at it.

[0]: https://weasyprint.org/

[1]: https://print-css.rocks/

[2]: https://pagedjs.org/


> I have no idea why you’d want to do that. Browsers are bad at it, dedicated tools are great at it.

Fair! I was just aspiring to a place where web pages and documents converge more.

Thanks for the recommendations!

This item has no comments currently.

Keyboard Shortcuts

Story Lists

j
Next story
k
Previous story
Shift+j
Last story
Shift+k
First story
o Enter
Go to story URL
c
Go to comments
u
Go to author

Navigation

Shift+t
Go to top stories
Shift+n
Go to new stories
Shift+b
Go to best stories
Shift+a
Go to Ask HN
Shift+s
Go to Show HN

Miscellaneous

?
Show this modal