JsPDF - HTML5 PDF generator
parall.ax
parall.ax
At least, it looks very different from when I last used it ~6 months ago.
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.)
You could look into something like http://prawn.majesticseacreature.com/ though.
Also, it is surprisingly fast.
Concerning quality of the PDF document, LaTeX very good in relation to other creators.
For being a universal document format, it's very frustrating that PDF readers don't make using them easier.
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.
Maybe the prior HTML rendering functions are still in the source. I think it's worth downloading and checking.
How have you found it?
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.
Gotchas : 1 - It can be hard to get downloading working using the Flash shim (For IE9 and below). It is possible though. 2 - Images have to be Base64 encoded, and that can be a royal pain.
I'm not the worlds best developer by a long chalk, but I had this library wrapped in a reporting class in a couple of days, and I can now pretty easily just throw some JS Structures at it, and have the tabular data printed out with headers and footers. I wish I could share it.
(I don't know if by "base64" you mean "data url", which usually encodes the raw data in base64...)
It essentially allows you to make an HTML page and convert it to a PDF. It has powerful options around making footers, headers etc. The best part is you can run jQuery on it. It comes in handy when you don't know what the data will be like.
Assuming you are not using Node.js as a backend, that might pose a problem, and cause you to possibly maintain the logic for two separate PDF generators.
A Web2JS of sorts maybe...
Though I'm more inclined towards using XeTeX since it solves a lot of problems without gluing a whole new language (LuaTex anyone?) in there.
I built a PDF library for PHP many years ago and the hardest part was text, typesetting is a hard problem.
Looks good for exporting images and charts though.
On Chrome seems fine.
Why does most of things related to PDF do not work with unicode characters?
Hundreds of years old tech is the optimum and 21st century tech like tablet computers is a step backwards for humanity?