Super easy html to pdf in Rails
WHY not PDFKit?
I dislike PDFKit for the installation issues and the stupid big amount of dependencies, because you need a lot of XOrg and Qt libs to make it work (it depends on wkhtmltopdf —the fugliest and random name, I know that it comes from Webkit html to pdf but it is ugly—), and I don’t want to play with xserver libraries on my server just for this. But I must say that PDFKit works and makes an amazing work, so if you don’t care about having X libs on your server you can try it.
WHY not htmldoc?
Ruby has an amazing wrapper for htmldoc, and it works really well, but It (htmldoc) can handle styles properly, so if you are planning to use it to ‘print’ one of your views, you must remake it without styles, or just be happy with the version without styles.