3 ms·
Use PhantomJS to Create PDFs from HTML: https://coderwall.com/p/5vmo1g https://coderwall.com/p/5vmo1g
by brianfryer 13y ago
Use PhantomJS to Create PDFs from HTML: https://coderwall.com/p/5vmo1g https://coderwall.com/p/5vmo1g
- nlh 13y agoThank you for the lead - looks good. I found this, which goes into a bit more details for the Rails folks (like me): http://big-elephants.com/2012-12/pdf-rendering-with-phantomjs/ http://big-elephants.com/2012-12/pdf-rendering-with-phantomj... Looks very promising. Open to suggestions if others have better PDF-generating solutions!
- paulwithap 13y agoWhat they don't tell you is that this method takes a long time and generates huge files unless you used a patched version of qt. I've been meaning to write a blog post on this.
- pero 13y agoPlease do.
- paulwithap 13y agoWhat they don't tell you is that this method takes a long time and generates huge files unless you used a patched version of qt. I've been meaning to write a blog post on this.
- _sh 13y agoPhantomJS uses the same mechanism that wkhtmltopdf uses (headless webkit) and thus requires the 'server-side trickery' mentioned by the parent. Also, the correct link is http://phantomjs.org/ http://phantomjs.org/