Hacker Newsnew | past | comments | ask | show | jobs | submit | esbenp's commentslogin

We actually used wkhtmltopdf before we started using pdf-bot. wkhtmltopdf development has slowed a lot, it is very unstable and you need to run a 2 year old alpha version to support flexbox (if I remember correctly) :-) headless chrome is a lot more stable choice imo.


We had an absolutely ghastly time last year trying to implement wkhtmltopdf in a Rails app - we probably wasted an entire week fighting with both Wicked PDF and PDFKit before we just gave up and wrote something using Prawn instead (which was, of course, extremely time-consuming in a different way, but at least the end result was good).


What problems did you run into with wkhtmltopdf? We have been using it without much trouble. Chrome pdf generation is nice but wkhtmltopdf generates smaller PDFs with table of contents.


All kinds of problems that others have mentioned above, plus in terms of the Rails integration, it felt like we hit almost every one of the open issues on the GitHub repos for both Wicked PDF and PDFKit. I vaguely recall fonts in production being a problem, a general lack of reliability, performance issues, fiddling around with various different binaries of wkhtmltopdf to find one that maybe worked... probably other things besides. It was a bad week and I wish I hadn't reminded myself!

(With no disrespect, of course, to the authors of these libraries - they just didn't work well for us.)


That is a cool idea! Would only require to setup a small server as webhook endpoint that creates the e-mail.


Yeah I think Puppeteer is a very cool project. Unfortunately, it came out literally one or two days after i finished the initial version of pdf-bot. Maybe I will incorporate it soon! :-)


Appreciate it. EmailThis lookes very cool! I have considered using Puppeteer for pdf-bot, it came out right after I finished it :-)



Awesome that this exists already. Now we just need TypeScript support... :)


I made a VS Code plugin for Prettier

https://github.com/esbenp/prettier-vscode

It is my first VS code extension so have no idea if it is correct way. Feedback is welcome.


Cool! Don't worry about it being "correct" or not. :)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: