Skip to content

Comment on Show HN: ReLaXed – High-quality PDFs using web technologies

Comments

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.

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.

I'm not sure I understand the image, but to my knowledge you can't just do any html -> pdf with pandoc.

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).

I believe they generate Latex fromh html and pdf from latex.

Would you happen to know the origin of this diagram? I like the font and overall style.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.