Live data from Hacker News

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

htmldocs.com

51–60 of 94 posts

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

#51
post #29

See 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…

I dunno about that. 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…

TeX at this point has entered computing legend. It has such a long and storied life.

But it’s old. We need something modern, that represents current ways to make documents from code. And that way is CSS. I bet within my lifetime most scientific publications will move to a PDF tool that ingests CSS. We just need to find something open-source and clean that has no missing functionality.

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

#53

> 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…

As the maintainer of wkhtmltopdf @ Odoo I can tell you it's not WebKit. Instead it's outdated WebKit from 2014 running on top of QT4 '^^

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

#54
post #49

I've used flying saucer pdf[1] for this in the past, but the missing piece always seems to be a descent WYSIWYG template editor. Either open source or paid. Any suggestions on a web solution that allows non-devs to make great templates would be appreciated. Historically I've built something simple with Tiny and added a preview button to render, but that super clunky. [1] https://github.com/flyingsaucerproject/flyings…

My firm is currently in the process of creating a similar product that features a sophisticated visual page editor. While it's not officially launched yet, the product is about 95% complete. At the moment, we are on the lookout for early adopters.

For those interested in giving it a try, please contact us at support at cx-reports dot com. We are providing complimentary licenses to users who are eager to collaborate with us during this phase.

Screenshot: https://pasteboard.co/th5f4s0uVWJH.png

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

#55
This looks well implemented. I will play with it some. I have a couple projects that rely on html interface to pdf output (or at least print > save to PDF reliability). I would love to be able to remove the management of internal dependencies.

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

#57
Typesetting for print from HTML is one of those things that both keeps popping up but also never really seems to take off. Prince still remains the main player and as proprietary as ever.

2005: https://alistapart.com/article/boom/

2015: https://www.smashingmagazine.com/2015/01/designing-for-print...

Today, this.

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

#59

I have been building a custom PDF generator for my Remarkable tablet using jsPDF. Something that has surprised me is how hard it is to keep the file size small with tools like this. Its fun and fast to generate things but when you get to 1000+ pages for something like a year long planner the document can quickly balloon past 70 MB. So far I have kept my 750-1300 page planner between 3-7 MB. I will give this a try and…

Please report back and let us know!

733 pages with the same cover image but without any calendaring line art comes in at 2049 KB. Opening that PDF back up in Chrome and using print "save as pdf" results in 1760 KB so there is some compression happening the second time around.

Overall this looks very promising!

Post reply on HN