Generate PDFs from the browser without dependencies. https://github.com/MrRio/jsPDF
Official browser demos at: mrrio.github.io/jsPDF/.
Only offers a positioning interface: does not do positioning algorithms like LaTeX does (floats, line wrapping, hyphenation). Has recently started doing simple line wrap: https://github.com/MrRio/jsPDF/issues/8.
Another similar alternative: https://github.com/devongovett/pdfkit