3 ms·
The source code is a nice read, and quite illuminating, if you've ever wanted to dig under the hood of a PDF: https://github.com/devongovett/pdfkit/tree/master
by jashkenas 15y ago
The source code is a nice read, and quite illuminating, if you've ever wanted to dig under the hood of a PDF:
https://github.com/devongovett/pdfkit/tree/master/lib 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.coffee https://github.com/devongovett/pdfkit/blob/master/lib/font.c...
You get bonus style points for embedding PostScript in a heredoc.
- dpritchett 15y agoI was just coming to comment on my delight in seeing the examples written in CoffeeScript.
- devongovett 15y agoThanks Jeremy! You just made my day. :)