3 ms·
Weasyprint [0] is OSS and supports CSS Paged media. I’m not actually sure why you’d ever use something like this project (or headless chrome for that matter, ma
by Semaphor 7mo ago
Weasyprint [0] is OSS and supports CSS Paged media. I’m not actually sure why you’d ever use something like this project (or headless chrome for that matter, maybe you need some automated login as well?) which doesn’t.
print-css.rock [1] has a good overview of available tools and their features.
[0]: https://github.com/Kozea/WeasyPrint https://github.com/Kozea/WeasyPrint
[1]: https://print-css.rocks/ https://print-css.rocks/
- cosmiciron 7mo agoBecause CSS is exactly what I wanted to avoid. I just needed predictable pager layout, and I didn't want to wrestle with CSS. Besides, this thing's tiny size allows it to run in a serverless function on the Edge, and that can be useful sometimes.
- Semaphor 7mo agoWhy use HTML if you want to avoid CSS? HTML default styles only?
- cosmiciron 7mo agoWho said I used HTML? It was impossible to write screenplay/manuscript in HTML and receive industry compliant outputs when printed/converted to PDF.
- TimTheTinker 7mo agoSounds like you need Scrivener. It outputs industry standard formats for all kinds of manuscripts.
- cosmiciron 7mo agoIts UI is too complicated for my taste. Besides, its screenplay support isn't perfect.
- fmajid 7mo agoAnd Weasyprint does not have browser dependencies either, which is great. Fun fact: I had to write a routine administrative letter for my parents in another country, I asked Claude to do so in PDF form so I could email it to them they would print it and mail it. The way it did so was to write a Python program using Weasyprint to generate the PDF...