Skip to content

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

Comments

How does this compare with Prince?

zulkoOP

Prince is a 3800$ software. Prince seems to encourage XML/HTML/CSS for writing documents, and I didn't like this. With ReLaXed I am trying to show that Pug/SCSS makes document writing much more natural.

Where Prince wins is in its support for CSS @page extensions (having pages with different margins etc.), it looks much more adapted to professional publishing. There are certainly many more advantages related to typography but I don't know them.

Link to Prince:

https://www.princexml.com

Looks like it uses headless chrome for HTML to PDF conversion so its not going to support advanced print CSS like Prince.

Real issue is Prince is the only browser that supports full print CSS, none of the major browsers seem to care about better print output anymore.

I used to use Prince in a few print-heavy applications. Eventually I moved to a LaTeX based workflow instead (we needed some features that Prince couldn't be expected to deliver). But Prince was a real pleasure to work with, and the output quality was very good. If LaTeX weren't a viable option in my project then I would use it again.

Interesting random factoid: Prince is (was?) written in a language called Mercury [1], which is kind of a statically typed Prolog. Research into Prince turned me on to state-of-the-art logic programming, so I'm thankful for that as well. :)

[1] http://www.mercurylang.org/

For one, everything here appears to be free and open source. Prince is pretty costly to run as a small endeavor and last I knew their pricing model wasn't very kind to horizontal scaling.

DocRaptor is PrinceXML as a service with reasonable pricing.

https://docraptor.com

DocRaptor is great. We used it for generating invoices for several years until our volume justified buying Prince and running it locally.

Check out https://breezypdf.com, which is reasonably priced with horizontal scaling.

AboutSource Built by g1lg1l

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