javiereguiluz / easybook

Book publishing as easy as it should be (built with Symfony components)
https://easycorp.io/EasyBook
Other
754 stars 81 forks source link

Add wkhtmltopdf support #170

Closed magabriel closed 1 year ago

magabriel commented 8 years ago

Fixes #25 .

This PR adds wkhtmltopdf as an alternative PDF rendering engine to PrinceXML.

Motivation: PrinceXML is a really fine utility but, being a commercial product (and not a cheap one), it falls out of reach of most modest developers. Using wkhtmltopdf as an alternative in easybook has been suggested several times.

Limitations: wkhtmltopdf does a very good job in PDF rendering but its capabilities fall behind when compared to PrinceXML. But this comparison is not totally fair, because wkthmltopdf is extensively used by a lots of projects and individuals who are very happy with it. Is only when compared to a commercial product like PrinceXML that it begins to show its weaknesses. Do not forget that it is Open Source (LGPL license) and free to use.

Among others, the main limitations of this implementation are:

The best way to learn about the limitations/differences with PrinceXML is generating the print and print-wkhtmltopdfeditions of the documentation and comparing them.