PDFKit - A PDF generation library for Node.js.
pdfkit.org
pdfkit.org
https://github.com/devongovett/pdfkit/tree/master/lib
edit: In particular, some of this TTF font handling stuff is pretty fun:
https://github.com/devongovett/pdfkit/blob/master/lib/font.c...
You get bonus style points for embedding PostScript in a heredoc.
http://developer.apple.com/library/mac/#documentation/Graphi...
Some things seem locked to integer multiples of 1/72th of an inch (so A4 comes out at 8.3x11.7 rather than 8.27x11.69 and laying out lines and text more precisely than that doesn't work) though I didn't delve into it to see if this could be rectified (by using using a smaller unit perhaps) as I didn't need more precision (which I'm guessing most people don't either). Line drawing widths and such take non-integer values fine, just not the line start/end coordinates.
Nice library though, I'll be using it again in future and may even be able to contribute. It may even be my impetus to play with CoffeeScript properly.