Generating PDF in JavaScript. A small set of solutions, that works both on client-side and server-side. Please just take a look.