by mikegioia · 13y ago · 0 comments
http://big-elephants.com/2012-12/pdf-rendering-with-phantomj...
Looks very promising. Open to suggestions if others have better PDF-generating solutions!
Also, the correct link is http://phantomjs.org/
(There's also a free version for non-commercial users, but it's really only usable for evaluation, because it adds a PrinceXML logo to the generated PDFs.)
Maybe the prior HTML rendering functions are still in the source. I think it's worth downloading and checking.
You could look into something like http://prawn.majesticseacreature.com/ though.
Prawn seems to have come a long way since I used it last - and has addressed all the limitations that pushed me towards LaTeX in the first place.
Definitely worth looking at Prawn again in my opinion.
Also, it is surprisingly fast.
I've used wkhtmltopdf, but lately I've discovered that Chrome does a pretty good job if you print a page, then specify print-to-file to a PDF destination.
How have you found it?