5 ms·
Anyone has a solution to make pdf from html thats hosted. The java library flyingsaucer is stuck at css 2.1 and not much maintained. I have been meaning to chec
by tmd83 11y ago
Anyone has a solution to make pdf from html thats hosted. The java library flyingsaucer is stuck at css 2.1 and not much maintained. I have been meaning to check wkhtmltopdf which will need launching a process but might be the best bet for such work. Anyone has better experience in doing something similar?
- aviraldg 11y agowkhtmltopdf works quite well, I've used it before. A bit of a hassle to get it compiling though.
- rpedela 11y agoI have also had great success with wkhtmltopdf. There are pre-built binaries available too: http://wkhtmltopdf.org/downloads.html http://wkhtmltopdf.org/downloads.html
- silvestrov 11y agohttp://www.princexml.com http://www.princexml.com is very good for complex multipage documents but unfortunately it's very expensive.
- burraboc 11y agoI've used phantomjs through the command line for generating pdfs from html using the screen capture functionality (http://phantomjs.org/screen-capture.html http://phantomjs.org/screen-capture.html).
- a3camero 11y agoI implemented this over the weekend using a small VM instance from Google Cloud + PDFBox 2. I set up Apache, wrote a quick PHP script that takes in the URL of the PDF to be converted, downloads it, converts it to HTML with PDFBox and then prints the HTML. I then linked this small piece into a bigger system that uses the converted HTML.
- noir_lord 11y agoI used wkhtmltopdf on a project, custom built a version of bootstrap from the less files purely for outputting via wkhtmltopdf, it worked really well and produced some nice looking PDF's. https://youtu.be/TC_uv_AD808?t=1m31s https://youtu.be/TC_uv_AD808?t=1m31s all the PDF's in that video where generated, that was an early alpha of the product.
- novaleaf 11y agophantomjscloud.com, there's a html-to-pdf example on the front page. disclaimer: i wrote it