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