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
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
Devon Govett
955000d68c
Merge pull request #568 from luqmaan/patch-2
...
Fix paper sizes link
2016-11-07 10:59:18 -05:00
alafr
e02f69ac00
Call emitLine() only once
...
emitLine() was called twice in some cases
2016-11-06 02:28:01 +02:00
Luqmaan Dawoodjee
357093ab2f
Fix paper sizes link
...
I couldn't find a doc with page sizes, so I'm just linking to the code.
I submitted this to the gh-pages branch instead of master in https://github.com/devongovett/pdfkit/pull/567 .
📄
2016-10-28 15:37:38 -05:00
Rainer ziller
61bc028c15
allow setting of list bullet circle
...
this change will allow users to set the size of the circle on bullet list item in the options via the setting "bulletRadius"
2016-10-18 13:58:30 +02:00
alafr
70297b9c36
Merge pull request #11 from alafr/Image-2
...
1. Possibility to open an image and not inserting it immediately.
This gives access to the width and height of the image so that position, clip path etc... can be adjusted before drawing the image in the document.
- `doc.openImage(src)` opens the image and returns the corresponding object.
- I adjusted the `doc.image()` function to also accept that PDFImage object.
2. The replacement of `Buffer.isBuffer(src)` with `typeof src is 'string'` fixes the issue #559 .
3. I ran tests with various images but only in the browser and **not** in Node.
2016-10-17 22:27:05 +03:00
alafr
baeae06d18
Fix for #559
2016-10-17 20:52:37 +03:00
alafr
bd98ce3456
Possibility to open an image without inserting it immediately in the document
2016-10-17 18:32:45 +03:00
Wildhoney
453b0ab499
Moved 'centered' to sit alongside 'fit'
2016-10-06 11:55:51 +01:00
Wildhoney
2486b94124
Added align/valign example to coffee
2016-10-03 12:35:28 +01:00
Wildhoney
387da605cb
Added image example to README
2016-10-03 12:19:39 +01:00
alafr
1c08703f38
Support for dash array
...
PDF reference 1.7 pages 218-219
2016-09-18 16:50:20 +03:00
alafr
3cdef01461
Add 'cover' option for images
2016-09-16 00:40:15 +03:00
alafr
a944efdac5
Merge pull request #5 from devongovett/master
...
Update
2016-09-07 08:54:04 +03:00
Devon Govett
b13423bf0a
Merge pull request #541 from alafr/RoundedRect
...
Rounded rect
2016-09-06 14:30:47 -07:00