(no title)
mikeday | 7 years ago
We chose it because logic/functional languages are great for tree processing, Mercury was designed for large projects, and because in 2002 there really weren't many other options around.
Its syntax and semantics are derived from Prolog, it borrows a lot from Haskell (types, type classes), in spirit it's reminiscent of OCaml (niche, little weird) and with support for unique modes there is some interesting overlap with Rust, although this aspect of the language still needs more compiler support.
All in all, definitely worth checking out.
mpweiher|7 years ago
bjz_|7 years ago
coldtea|7 years ago
noir_lord|7 years ago
https://symfony.com/doc/current/index.html#gsc.tab=0
Select offline, The book, 4.2 and it generates the book on the fly.
lillesvin|7 years ago
Full disclosure: If I'd had my way we would have used LaTeX templates to produce the PDFs but the previous developers had already implemented the HTML->PDF flow, so we just replaced the old, defunct service with Prince, which did a surprisingly good job, IMO.
justbaker|7 years ago
If you have to repeat this process 2000 times, it becomes time consuming. It doesn't scale for a single user needing 2000 pdfs to do the process manually.
fermigier|7 years ago
It's a bit pricey, though (at leats, pricer than "free"). So we're using WeasyPrint on more recent projects.
WeasyPrint is open source and written in Python. It's much slower than Prince, though, but this can be mitigated by caching renderings. I'm would bet that it's as standard-compliant or bug-free than Prince, but it's good enough for us.
When / if our customers ask for more speed or pixel-perfect support (with the $$$ to match), we will definitively try Prince again.
marmaduke|7 years ago
HTML to PDF is something I never thought about since Firefox does it (and results usually aren’t great).
mikeday|7 years ago
The browsers don't specialise in PDF generation, and we do :)