251 Commits

Author SHA1 Message Date
Mihai Bazon
b60fe860e0 Fix reading UInt32
In JS, 0x80 << 24 yields a negative result.  Also, 0x80000000|0 < 0.
Bitwise ops should be avoided for very long unsigned ints.
2014-08-16 11:57:54 +03:00
Devon Govett
26a0753d6c v0.6.3 v0.6.3 2014-07-29 09:45:08 -07:00
Devon Govett
1241997715 Refactor font loading code and add support for ArrayBuffers 2014-07-29 09:42:48 -07:00
Devon Govett
314e9d28ae Merge pull request #257 from pretzelfisch/master
added support for add font as Uint8Array
2014-07-29 09:36:57 -07:00
Aaron Fischer
c2c61bb2e2 added support for add font as Uint8Array 2014-07-29 09:15:39 -07:00
Devon Govett
e58a7ce809 Formatting 2014-07-14 20:48:00 -07:00
Devon Govett
afbb700fb1 Merge pull request #250 from jkol/master
Added "valign" option to image "fit" scaling
2014-07-14 20:46:43 -07:00
jkol
64df00fa13 Added "valign" option to image "fit" scaling
valign can be set to "center" or "bottom" now and when "valign" === "center" is combined with "align" === "center" any aspect ratio image can be centered into a bounding area.
2014-07-14 18:23:11 -05:00
Devon Govett
6b0846c68f Fix docs on piping to an HTTP response 2014-05-21 09:12:48 -07:00
Devon Govett
5cb45d6c99 v0.6.2 v0.6.2 2014-05-10 10:21:51 -07:00
Devon Govett
7883279a74 Merge pull request #238 from ryanwersal/iss224-fix-char-spacing
Remove text state handling as it doesn't surive graphic stack saves/restores
2014-05-10 10:14:39 -07:00
Ryan Wersal
c77add8f56 Remove text state handling as it doesn't surive graphic stack saves/restores
Saving and/or restoring the graphics state causes each text object to have to
reinitialize that text state. As a result, the mode/characterSpacing commands
would not get re-added until their value(s) had changed.
2014-05-10 01:11:06 -05:00
Devon Govett
0e221f9d03 Merge pull request #237 from ryanwersal/improve-underline-sizing
Improve sizing of text underline
2014-05-09 19:20:41 -07:00
Ryan Wersal
aadc589a62 Improve sizing of text underline 2014-05-09 00:05:17 -05:00
Devon Govett
6d5b06df17 Merge pull request #235 from ryanwersal/add-base64-image
Add ability to add base64 URI images
2014-05-06 10:03:58 -07:00
Ryan Wersal
acc0a2e4ba Use a regex to capture the base64 encoded string 2014-05-06 00:43:02 -05:00
Devon Govett
c753a45ebb Merge pull request #234 from ryanwersal/fix-dependencies
Fix dependencies for browser-demo
2014-05-05 20:53:47 -07:00
Ryan Wersal
1020ac7b73 Mark blob-stream as a dev dependency 2014-05-05 22:49:37 -05:00
Ryan Wersal
2b34173dec Add ability to add base64 URI images 2014-05-05 22:47:33 -05:00
Ryan Wersal
15823ec547 Fix dependencies for browser-demo
Restrict brfs' version to fix unexpected identifier errors. See #230.
Add blob-stream as a dependency.
2014-05-05 22:43:48 -05:00
Devon Govett
16e8b0316f Rebuild guide for v0.6.1 v0.6.1 2014-04-14 10:00:16 -07:00
Devon Govett
5a06eb79c6 v0.6.1 2014-04-14 09:58:45 -07:00
Devon Govett
a6f6f4df8a Don't use trimRight since it isn't supported in IE 2014-04-14 09:58:26 -07:00
Devon Govett
39ac0a69fe Another link to demo 2014-04-14 00:04:07 -07:00
Devon Govett
655d753bfb Add Google analytics code to browser demo 2014-04-13 23:08:31 -07:00
Devon Govett
968f2c73de Merge pull request #223 from devongovett/browser
Support using PDFKit in the Browser, thanks to Browserify!
v0.6.0
2014-04-13 22:54:11 -07:00
Devon Govett
701ba34c45 Add note about using buffers for fonts 2014-04-13 22:49:06 -07:00
Devon Govett
72757e38e6 Add link to in-browser demo 2014-04-13 22:44:18 -07:00
Devon Govett
9b3d804170 Add note about installing brfs to browserify 2014-04-13 22:22:19 -07:00
Devon Govett
1eb3b6b651 Remove coffeeify transform from package.json and use compiled JS for browserify 2014-04-13 22:09:12 -07:00
Devon Govett
b6fd1701e6 Fix indentation 2014-04-13 22:08:17 -07:00
Devon Govett
3c90db37a5 v0.6.0! 2014-04-13 20:20:37 -07:00
Devon Govett
1df3cc1f08 Rebuild PDF guide 2014-04-13 20:20:26 -07:00
Devon Govett
cab012a56a Add browser demo to makefile target for docs 2014-04-13 20:17:30 -07:00
Devon Govett
48bc1a4f5a Turn github highlighted code blocks into normal markdown code blocks 2014-04-13 20:17:20 -07:00
Devon Govett
ad8d8b5b9b Add section to the docs about using PDFKit in the browser 2014-04-13 19:56:34 -07:00
Devon Govett
f9986cf15a End the stream 2014-04-13 19:54:33 -07:00
Devon Govett
5efb4b7fc9 Make sure the img directory exists 2014-04-13 19:54:26 -07:00
Devon Govett
6e447cae7a Don't embed fonts that haven't been referenced 2014-04-13 19:54:18 -07:00
Devon Govett
844885af87 Add Makefile targets for documentation 2014-04-13 19:48:33 -07:00
Devon Govett
cd928126e4 Make sure doc scripts current directory is right 2014-04-13 19:48:21 -07:00
Devon Govett
af49f9ccc9 Add link to browser demo in docs 2014-04-13 19:32:00 -07:00
Devon Govett
e880ab4584 Add browser demo 2014-04-13 19:28:49 -07:00
Devon Govett
bea07a9a1e Add mime type 2014-04-13 19:23:49 -07:00
Devon Govett
ab87c41c4b Update README with browser usage info 2014-04-13 18:21:50 -07:00
Devon Govett
4613546703 Add a Makefile for browser and node builds 2014-04-13 18:00:43 -07:00
Devon Govett
78756f2f61 Make sure we have node streams 2 (v0.10 and higher) 2014-04-13 17:59:46 -07:00
Devon Govett
aa1d368c80 Add browserify fields and dependencies to package.json 2014-04-13 17:58:59 -07:00
Devon Govett
426fc15ca1 Add build and js folders to gitignore 2014-04-13 17:57:01 -07:00
Devon Govett
22499ee4bd Include a static list of standard fonts so they can be included by browserify/brfs 2014-04-12 20:48:29 -07:00