Live data from Hacker News

Show HN: Htmldocs – Typeset and generate pdfs with HTML/CSS

htmldocs.com

11–20 of 94 posts

Re: Show HN: Htmldocs – Typeset and generate pdfs with HTML/CSS

#13
post #7

Your terms of service appear to be bogus: > You acknowledge that the Website is a general-purpose search engine and tool. Specifically, but without limitation, the Website allows you to search multiple websites for music. Moreover, the Website is a general-purpose tool that allows you to convert audio files from videos and audio from elsewhere on the Internet. The Website may only be used in accordance with law. We d…

Nice catch, I copy/pasted that from a previous project and forgot to remove - should be fixed now.

TOS is pretty general and just there for legal reasons, tl;dr feel free to use as you see fit as long as it's not for anything illegal.

Re: Show HN: Htmldocs – Typeset and generate pdfs with HTML/CSS

#14

> htmldocs is different from other tools like Wkhtmltopdf and Weasyprint in that it uses Chromium to generate PDFs, meaning that it supports the most modern CSS features and there's minimal drift between the rendered HTML document and PDF. WeasyPrint is implemented as a from-scratch and specific-purpose rendering engine, so yeah, it’s different. But wkhtmltopdf uses WebKit, meaning it’s much the same as htmldocs, jus…

You can use paged.js (https://pagedjs.org/) it's a polyfill for CSS Paged Media to generate good PDFs with modern HTML/CSS.

Re: Show HN: Htmldocs – Typeset and generate pdfs with HTML/CSS

#15
post #5
post #3

Some 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?

agree with the other comment - I made my resume in HTML / CSS, and the most reliable way to generate a PDF is just Chrome's print to PDF. I tried weasyprint and wkhtmltopdf and they either dropped elements or changed the layout.

Re: Show HN: Htmldocs – Typeset and generate pdfs with HTML/CSS

#16
post #5
post #3

Some 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?

wkhtmltopdf[1] uses the QT WebKit renderer. I used it as part of my job hut work-flow with pandoc to get pdf resumes from markdown. It got me a job, so there's that.

[1] https://wkhtmltopdf.org/

Re: Show HN: Htmldocs – Typeset and generate pdfs with HTML/CSS

#17
Awesome idea, been looking for something like this every now and then, esp right now.

But

could use some performance improvements...

Maybe you tested this on your state of the art workstation but my i7 8th gen is getting choked to death...

EDIT:

It doesn't seem to work: I picked the resume template and set the margin and padding on `li` to 0 but nothing changed in the output.

Re: Show HN: Htmldocs – Typeset and generate pdfs with HTML/CSS

#18
post #12

You use the word documents on the site, but you don't make it clear that it is for making pdfs. I thought that this was just an html/css webpage editor. "Typeset and Generate PDFs with HTML/CSS" really should be the H1 on that page for clarity.

This is a great suggestion and I feel dumb for not thinking of this earlier. Thanks!

Re: Show HN: Htmldocs – Typeset and generate pdfs with HTML/CSS

#19

Awesome idea, been looking for something like this every now and then, esp right now. But could use some performance improvements... Maybe you tested this on your state of the art workstation but my i7 8th gen is getting choked to death... EDIT: It doesn't seem to work: I picked the resume template and set the margin and padding on `li` to 0 but nothing changed in the output.

I think it should be on the tag. See https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_li...
Post reply on HN