426 Commits

Author SHA1 Message Date
Devon Govett
b9fc5b04a8 0.8.3 v0.8.3 2017-07-01 18:31:34 -07:00
Devon Govett
5ae153490d Fix word spacing
We were mutating a cached position object. Fixes #687.
2017-07-01 18:30:58 -07:00
Devon Govett
e4bb772409 Merge pull request #678 from alafr/patch-1
rotate origin - unclip
2017-06-10 12:01:07 -07:00
alafr
dd5ac13d2b rotate origin - unclip 2017-06-07 03:04:03 +03:00
Devon Govett
61e1039b5a Merge branch 'bjnsn-arc-method' 2017-05-29 21:32:02 -07:00
Devon Govett
7fb08ec803 Merge branch 'arc-method' of https://github.com/bjnsn/pdfkit into bjnsn-arc-method 2017-05-29 21:31:48 -07:00
Devon Govett
520096ac46 Merge branch 'master' of github.com:devongovett/pdfkit 2017-05-29 21:20:56 -07:00
Devon Govett
d35f7cc962 Don’t save font if it has no name
Closes #661, #603.
2017-05-29 21:20:46 -07:00
Fyodor
ed07a06223 Fix wrong escape of metadata when using UTF-16 (#618) 2017-05-29 21:10:01 -07:00
Devon Govett
55147c4412 Don’t override opacity when setting fill or stroke color
Closes #329.
2017-05-29 21:01:59 -07:00
alafr
31aa437a9f Fix scale function (#596)
The function wasn't working in these cases:
scale(xFactor, yFactor)
scale(xyFactor, options)
2017-05-29 20:32:10 -07:00
Devon Govett
2e18ea25e9 Merge pull request #647 from awerlang/patch-1
print empty string instead of undefined or null
2017-05-29 20:29:12 -07:00
Devon Govett
7fd79bb269 Update text.coffee 2017-05-29 20:29:00 -07:00
Devon Govett
e71edab0dd 0.8.2 v0.8.2 2017-05-29 15:20:28 -07:00
Devon Govett
6e9e58f5d2 Implement word cache around fontkit
Caches the results of fontkit layout calls, which can be expensive depending on the opentype features in the font. Splits up text by words and shapes each individually to increase cache efficiency.
2017-05-29 15:19:55 -07:00
Devon Govett
d2e18da772 0.8.1 v0.8.1 2017-05-23 20:06:16 -07:00
Devon Govett
c0850c4559 Update linebreak dependency 2017-05-23 20:05:57 -07:00
Devon Govett
f9d81c6e00 Fix heightOfString with autoFirstPage: false 2017-05-23 20:04:20 -07:00
André Werlang
94939a567c print empty string instead of undefined or null
writing `undefined` or `null` to a document is hardly the user's intention, so this fixes it
2017-03-30 09:02:14 -03:00
Devon Govett
f5b4f675c1 Merge pull request #579 from M3ssman/master
Enhanced Doc for standard Fonts
2016-12-10 12:28:17 -08:00
M3ssman
5fd673b35b list of standard fonts 2016-12-10 20:58:24 +01:00
Devon Govett
63d6e5020f Move number formatter to PDFObject class 2016-12-10 11:41:31 -08:00
Devon Govett
e1a4f490b3 Merge pull request #572 from alafr/numbers
Pdf corruption with small numbers
2016-12-10 11:29:35 -08:00
Devon Govett
145aa5a4e9 Merge pull request #592 from alafr/docs
Docs update: widthOfString, heightOfString, list
2016-12-10 11:25:41 -08:00
Devon Govett
723583b1bf Merge pull request #590 from alafr/gradients
Fix issues with opacity gradients
2016-11-30 19:06:40 -08:00
alafr
95e5a87185 Update line wrapping behaviour 2016-11-30 15:43:04 +02:00
alafr
c0c2a4b88d widthOfString, heightOfString, list 2016-11-30 15:25:32 +02:00
alafr
f65ab0052f Fix whitespace, split long line and...
... keep 'grad.transform' so that the old api continues working as before
2016-11-30 09:46:13 +02:00
alafr
c1cda04126 Remove _sMasked 2016-11-30 09:26:24 +02:00
alafr
c892bc348b Fix issues with opacity gradients
When there is opacity ≠ 1 specified, the gradient is drawn and masked on a "Tiling Pattern". The tiling has BBox, XStep & YStep values equal to the dimensions of the page, to avoid any clipping or tiling repetition. Patterns are unaffected by the "Current Transformation Matrix" so the clipping rectangle is always aligned with the page borders (SMasks and Groups don't have this property). Problems could possibly happen if a gradient is embedded on multiple pages (this doesn't work anyway) of different size.

This pull request resolves the following issues:
- Fix use of opacity gradients with fillAndStroke (#214)
- Fix the reuse of the same gradient after transformations
- Fix clipping of some gradients with opacity
- Add 'transform' function to the gradient object
2016-11-28 11:03:57 +02:00
alafr
bd1dd959ba Merge pull request #28 from devongovett/master
Update master
2016-11-28 10:31:59 +02:00
Devon Govett
ec17e3cd1b Merge pull request #586 from alafr/patch-1
Fix typo in radialGradient arguments
2016-11-24 00:47:34 -05:00
alafr
8a10537fcc Fix typo in radialGradient arguments 2016-11-23 00:21:07 +02:00
M3ssman
8a78a3a2b6 Enhanced Doc for standard Fonts 2016-11-15 22:04:14 +01:00
alafr
87b31610bc Merge pull request #17 from devongovett/master
Update fork
2016-11-14 00:16:53 +02:00
alafr
4f26f05d29 Update text.coffee 2016-11-07 22:27:52 +02:00
alafr
83b5a965d7 Remove function fixRoundingError 2016-11-07 22:24:45 +02:00
alafr
ddfea70f71 Fix numbers in text.coffee 2016-11-07 22:22:20 +02:00
alafr
dba211945f Fix numbers in vector.coffee 2016-11-07 22:19:38 +02:00
alafr
d6b7fe88e4 Add new function number(n) 2016-11-07 22:13:30 +02:00
Devon Govett
bd131a4cd9 Merge pull request #571 from alafr/patch-1
Documentation for cover, align and valign
2016-11-07 14:12:29 -05:00
alafr
8b4f1536b5 Merge pull request #13 from devongovett/master
Update fork
2016-11-07 19:10:09 +02:00
alafr
deda269ae6 Update images.coffee.md 2016-11-07 19:00:54 +02:00
alafr
9e8c8126d4 Update images.coffee.md 2016-11-07 18:36:18 +02:00
Devon Govett
f9ab215ea6 Merge pull request #551 from alafr/Dash-array
Add support for dash array
2016-11-07 11:23:06 -05:00
Devon Govett
0beaadb4b3 Merge pull request #552 from Wildhoney/add-image-example
Added image example to README
2016-11-07 11:22:16 -05:00
Devon Govett
0ad465f915 Merge pull request #554 from alafr/Image-cover-option
Images
2016-11-07 11:17:36 -05:00
Devon Govett
bb2161597e Merge pull request #570 from alafr/line-wrapper-bug
Line wrapper bug
2016-11-07 11:15:27 -05:00
alafr
317953c54f Remove semicolons 2016-11-07 18:11:49 +02:00
Devon Govett
d1effd9ef9 Merge pull request #564 from Malyngo/feature/list-bullet-radius-as-option
allow setting size of list bullet circle via options
2016-11-07 10:59:42 -05:00