Re:Show HN: CLI for generating PDFs for offline reading
by pavs on Monday February 05, 2024 @05:30PM
(#39268147)
like this:
going even further using bash script to prompt for url.
[ Parent
| on HN ]
Re:Show HN: CLI for generating PDFs for offline reading
by natrys on Monday February 05, 2024 @06:31PM
(#39268676)
Pandoc can also output to pdf if you have latex installed. You can use tectonic if you want a single binary solution than a full latex toolchain, it downloads necessary packages on the fly.
Re:Show HN: CLI for generating PDFs for offline reading
by psanford on Monday February 05, 2024 @06:10PM
(#39268501)
wkhtmltopdf seems to be archived on github[1]. Can't say I want to run an unpatched, outdated browser engine for this.
Re:Show HN: CLI for generating PDFs for offline reading
by bananskalhalk on Tuesday February 06, 2024 @12:51AM
(#39271230)
Or you could just import weasyprint and readability in python!
Which is pretty much what OP did, with a few nice additions like nice output and some custom css and fonts. Which is nice and OP hope brings value to people.
If you add a few printf:s and include a nice template for pandoc* it would be more along the same thing.
*) Neither pandoc, wkhtmlpdf or weasyprint have (in my opinion) bad default templates.
Re:Show HN: CLI for generating PDFs for offline reading
by worldsayshi on Tuesday February 06, 2024 @05:22PM
(#39281609)
Pandoc can also do epub output: https://pandoc.org/epub.html