20 Commits

Author SHA1 Message Date
Devon Govett
6b2bea9835 Merge branch 'master' of github.com:devongovett/pdfkit into fontkit
Conflicts:
	lib/font/table.coffee
	lib/font/tables/cmap.coffee
	lib/font/tables/glyf.coffee
	lib/font/tables/head.coffee
	lib/font/tables/hhea.coffee
	lib/font/tables/hmtx.coffee
	lib/font/tables/loca.coffee
	lib/font/tables/maxp.coffee
	lib/font/tables/name.coffee
	lib/font/tables/os2.coffee
	lib/font/tables/post.coffee
2014-11-27 20:51:58 -08:00
Devon Govett
95b149e16d Minor style changes 2014-09-12 15:09:49 -04:00
Edward Faulkner
1c48bad333 bufferedPages support 2014-09-12 14:59:45 -04:00
Devon Govett
0c5f818e23 Split PDFFont class into separate subclasses for embedded and standard fonts 2014-07-06 00:03:12 -07:00
Devon Govett
78946e97fc Rework mixin so it can be statically compiled by browserify 2014-04-12 20:47:54 -07:00
Devon Govett
16e00aa9e2 Allow setting compress option from constructor 2014-03-29 19:45:41 -07:00
Devon Govett
0907968905 Don't store all objects in memory, just offsets once they are written 2014-03-23 18:16:42 -07:00
Devon Govett
f8a40dba76 Make PDFDocument a node stream 2014-03-23 17:11:48 -07:00
Devon Govett
1305a9592a Switch to 2 space indentation 2014-03-23 12:25:09 -07:00
Devon Govett
8ca8070867 Add comment about +1 2014-02-15 00:41:01 -08:00
Kyle Kirby
3904daf1b3 Fixed a bug where the xref table would have incorrect offsets.
The additional "\n" character upon the final ".join" of data wasn't taken into account. This may fix #173 and #147.
2014-01-30 18:47:52 -06:00
Devon Govett
f8a8f98212 Only swap bytes for PDF metadata, not for annotations. Closes #174 2013-11-14 19:37:45 -08:00
Thomas Parslow
6e7b57a0d8 Have output return a binary buffer
Right now output returns a string to its callback, this means you can't just write it to a file or send it to a response as the default encoding (utf8) is incorrect. You have to manually specify binary. If instead of a string you return a binary buffer then you don't have to worry about this.

I also fixed the generation of the final string to not build the string with repeated concatenation which is O(n^2) and instead build up an array of strings then join them all at once which is O(n)
2013-10-24 09:51:52 +01:00
Devon Govett
587456daad Fix some transform stuff 2013-05-12 20:27:03 -07:00
Devon Govett
b9da8ebedd Switch to using Node's built in zlib bindings. Fixes #48. 2012-04-03 19:28:59 -07:00
Devon Govett
aab337d215 By default, text now wraps to the page margins which are by default, 1 inch. This will not happen if you pass X and Y coordinates for the text to appear at. 2011-07-22 11:44:32 -04:00
Devon Govett
9d90e25664 Font subsetting support. Only includes characters in embedded fonts that are actually used in the document. Please report bugs if you find them! 2011-07-17 01:13:44 -04:00
Devon Govett
2d4d2adf76 PDFDocument#write callback support 2011-07-12 09:43:07 -04:00
Devon Govett
8817481411 More fixes 2011-07-11 10:52:49 -04:00
Devon Govett
9215fc1b02 Initial commit 2011-07-09 22:57:00 -04:00