438 Commits

Author SHA1 Message Date
alafr
34cf8d5fa6
Text baseline & oblique option (#585) 2018-02-02 18:39:57 +01:00
alafr
8859fdb11c
Add support for numbered and lettered lists (#597) 2018-02-02 18:18:41 +01:00
alafr
3e516857fb
Merge pull request #763 from alafr/cmyk-gradient
support CMYK gradients
2018-02-02 17:44:32 +01:00
alafr
d1cb5268b4
Merge pull request #764 from alafr/undo-bug
Fix linewrapper bug
2018-02-02 11:53:17 +01:00
alafr
cbd016a60d
Merge pull request #723 from frankboehmer/master
Fixed line_wrapper.coffee: potential endless loop
2018-02-01 17:17:26 +01:00
alafr
873df76b08
support CMYK gradients 2017-12-25 12:31:54 +01:00
alafr
151200dd34
Fix linewrapper bug
- Fix #689 (the bug I created last year)
- Fix #345 (the original issue)
2017-11-19 00:29:17 +01:00
Frank Böhmer
c650577ecd Fixed line_wrapper.coffee: (while w > @spaceLeft) did run endless, if space is to tight for even a single character 2017-08-24 09:28:06 +02:00
Jordan Danford
ffa487fd50 Change "it's" to "its" where appropriate, remove extra whitespace (#702) 2017-07-30 11:19:32 -07:00
Liongold
b0e0290541 Fixed #652 - Added page sizes docs page (#703) 2017-07-30 11:19:00 -07:00
alafr
a531f433c1 Add support for link to another page (#701)
* Link to a page

* Text link can go to page 0

* Update annotations.coffee
2017-07-30 11:15:31 -07:00
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
António Marques
abf061df0b Add support for numbered and lettered lists 2016-12-14 12:10:41 +00: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