Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How does one go about creating (and sending) a PDF from a web form (like Invoice-o-matic and billable.me)?


I would take POST data, and plug it into a templating system (like Django's), which is using something like LaTeX to define the basic properties of the document and populating with data and logic from Django.

Basically a mix of two markups in one file. Meh, there's probably a better way to do that.


Eh, easy. http://jspdf.com/

You can create a file with javascript at the client side, without creating load on the server.




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

Search: