Brian Downing
5fc69d96c8
Fix setting text x or y to 0
...
Because of the use of the construction "@x = x or @x" there was no way
to set x (or y) to 0, since 0 is falsy. Fix to use separate outer tests
and unconditional assignment.
2013-12-01 21:38:38 -06:00
Devon Govett
27c17cf454
Fix behavior of text wrapping with x/y without width. Use options.lineBreak = false to disable linebreaking
2013-11-09 23:13:50 -08:00
Devon Govett
a7c0a63d76
Merge pull request #167 from Nathanaela/Fix_Eating_Chars
...
Fixes the eating of prefix characters:
2013-11-09 22:43:58 -08:00
Devon Govett
f95a68c149
Clean up, and release 0.2.3
2013-11-09 22:41:15 -08:00
Devon Govett
5ef0bd8ac3
Merge pull request #78 from wabbit/master
...
Added image alignment to the image fit option
2013-11-09 22:38:49 -08:00
Nathanael Anderson
e5bbe4dfce
Fixes the eating of prefix characters:
...
;:.-/\?!
2013-10-24 12:43:25 -05:00
Julian Gruber
6775d194a1
make registerFont chainable
2013-06-28 10:51:23 +02:00
Devon Govett
2493e0c34c
Add gradient support (both linear and radial). Closes #95 .
2013-05-12 20:29:53 -07:00
Devon Govett
587456daad
Fix some transform stuff
2013-05-12 20:27:03 -07:00
Devon Govett
bf760a1729
Break line wrapper out into separate class
2013-05-12 20:24:51 -07:00
wabbit
64031f60c1
Added the 'Align' feature to the image fit option. now when you set an image to fit inside a container, you can make it center or right align (left is default, so needs no aligning)
2012-06-28 14:46:16 +03:00
tofutim
e6fb9f0fd1
Using [null null] 0 d for undash causes Acrobat Reader to crash. Use [] 0 d instead.
2012-06-20 21:41:56 -07:00
Devon Govett
273f704186
Remove beginPath function.
...
PDF subpaths are begun automatically by moveTo. Was causing issues with opening and printing some PDFs in Adobe Reader.
2012-05-17 09:24:43 -07:00
Devon Govett
eeae6ad991
Fix image issue. Closes #71 .
2012-05-04 09:07:18 -07:00
Devon Govett
2e457ac0f3
Fix transformation issues. Closes #67 , #68 and #35 .
...
I think 5 decimal places is probably enough.
2012-04-03 20:58:20 -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
513fef78e1
Encode text as hex to avoid an escaping issue when using font subsets. Fixes #33 .
2011-09-05 11:02:56 -04:00
Devon Govett
431a5186fe
Automatically convert text to a string
2011-08-23 10:46:51 -04:00
Devon Govett
753e41462b
Allow zero image coordinates - fixes #25
2011-08-19 18:33:43 -04:00
Devon Govett
927c5d769b
Fix a column wrapping bug
2011-08-16 21:04:27 -04:00
Devon Govett
89dd7fdc8e
Define upfront
2011-07-26 22:02:02 -04:00
Devon Govett
ee86d0493f
Don't move down the paragraph gap when on the first paragraph of a page or column.
2011-07-22 16:33:26 -04:00
Devon Govett
d11b105267
Fix comment
2011-07-22 15:38:24 -04:00
Devon Govett
526e42923f
Support for wrapping text into columns (across multiple pages if needed)!
2011-07-22 15:31:10 -04:00
Devon Govett
0d11ae8777
Make sure that the first line of a paragraph is never by itself at the bottom of a page
2011-07-22 13:12:06 -04:00
Devon Govett
bffd8d9878
Automatically flow text to new pages if it doesn't fit on a single one.
2011-07-22 12:41:02 -04: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
a9bb4e04db
Support for options.x and options.y in text method is no more.
2011-07-22 10:51:35 -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
84853322b8
Remove old code.
2011-07-17 00:20:28 -04:00
Devon Govett
d0b84f8595
Make list method use current x and y position by default and reset x position at the end.
2011-07-15 23:20:46 -04:00
Devon Govett
785eedcaf8
Support for the wordSpacing and characterSpacing text options
2011-07-13 01:12:45 -04:00
Devon Govett
78fb2724ab
Add a roundedRect convenience method
2011-07-12 16:22:06 -04:00
Devon Govett
6a9d2f8fff
CMYK color support
2011-07-12 01:57:13 -04:00
Devon Govett
6f62c5d3cf
Rework the text module.
2011-07-12 01:00:58 -04:00
Devon Govett
8817481411
More fixes
2011-07-11 10:52:49 -04:00
Devon Govett
a0f6d291b9
Bug Fixes
2011-07-11 02:55:10 -04:00
Devon Govett
9215fc1b02
Initial commit
2011-07-09 22:57:00 -04:00