Show HN: Htmldocs – Typeset and generate pdfs with HTML/CSS
31–40 of 94 posts
Re: Show HN: Htmldocs – Typeset and generate pdfs with HTML/CSS
#32I think you’re onto something here.
I work on an OSS reporting and analytics tool (https://github.com/evidence-dev/evidence) and the amount of time and effort that goes into a really good “print pdf”, and how valuable people find it, has been one of the more surprising parts of the project to me.
Re: Show HN: Htmldocs – Typeset and generate pdfs with HTML/CSS
#33Hi @kelvinzhang, the burger menu does not work on firefox for android
Re: Show HN: Htmldocs – Typeset and generate pdfs with HTML/CSS
#34One small thing, when signing up with Gmail, it still asks for my Name and Surname when supposedly it's something you can get out of the OAuth APIs.
Re: Show HN: Htmldocs – Typeset and generate pdfs with HTML/CSS
#35Some people might be interested in https://weasyprint.org/
Interesting, I'm looking for a solution to render PDFs at the moment, it looks like that one actually does not use chromium, unlike most tools that I've seen that render HTML to PDFs. What's the advantage? Is it more lightweight / faster / reliable?
Re: Show HN: Htmldocs – Typeset and generate pdfs with HTML/CSS
#36Great project and great work! I had a similar itch to scratch and I found quarto ( https://quarto.org/ ) - free, open-source and doesn’t depend on chrome (admittedly it has other dependencies, but at least not chrome).
Re: Show HN: Htmldocs – Typeset and generate pdfs with HTML/CSS
#37Hi @kelvinzhang, the burger menu does not work on firefox for android
Re: Show HN: Htmldocs – Typeset and generate pdfs with HTML/CSS
#38See also native CSS support for paged media: https://www.w3.org/TR/css-page-3/ When I looked into it several years ago, browser support for some critical features wasn't there yet. Not sure whether this has improved. In principle, this would be a great alternative to proprietary PDF rendering libraries which require you to design your document completely in (e.g. Java) code, and to the typical LaTeX approach. You rea…
For simple stuff, sure HTML and CSS is great, but when I want something print-perfect I use LaTeX.
A simple table in LaTeX is no harder than in HTML, assuming the same level of knowledge in the tool.
But then when you throw in a simple requirement like "left margins on even pages and right margins on odd pages need to be larger", HTML becomes hell to work in.
HTML and CSS, even with a media query for print, sucks.