News for hackers. Stuff that matters.
Re:Show HN: ReLaXed – High-quality PDFs using web technologies by thangalin on Monday April 30, 2018 @12:42PM (#16960091)
How does this improve upon Pandoc?

https://i.imgur.com/tMkMjNV.png

In the image, ConTeXt generates PDFs. The EA box represents HTML documentation exported from Enterprise Architect, but could be any structured document that pandoc can parse. The source repository contains various themes for the final PDF.

Using ConTeXt offers several compelling features, such as: citations, cross-references, and ability to produce EBPUBs.

Re:Show HN: ReLaXed – High-quality PDFs using web technologies by vorpalhex on Monday April 30, 2018 @10:46PM (#16964247)
Pandoc ultimately either has to move the html through another markup format such as laTeX or uses a plugin that attempts to convert html4 to pdf code.

This uses a full browser rendering engine that supports modern html5/css3/js by ultimately running a headless browser.

I suspect pandoc is still a great approach for a lot of cases. Running a headless browser isn't cheap, especially at scale. If your output is a simple book or an invoice, pandoc is probably the way to go. If you want to pdf websites or dump an html file with charts into a pdf, use this.

Re:Show HN: ReLaXed – High-quality PDFs using web technologies by baby on Monday April 30, 2018 @02:42PM (#16961116)
I'm not sure I understand the image, but to my knowledge you can't just do any html -> pdf with pandoc.
Re:Show HN: ReLaXed – High-quality PDFs using web technologies by maxerickson on Monday April 30, 2018 @04:25PM (#16961927)
I have no idea how well it works, but pandoc supports html as an input format (if I understand right, it supports most/all input->output pairs).
Re:Show HN: ReLaXed – High-quality PDFs using web technologies by omnimus on Monday April 30, 2018 @06:41PM (#16963138)
I believe they generate Latex fromh html and pdf from latex.
Re:Show HN: ReLaXed – High-quality PDFs using web technologies by lahcim8 on Monday April 30, 2018 @04:04PM (#16961753)
Would you happen to know the origin of this diagram? I like the font and overall style.