294 Commits

Author SHA1 Message Date
Libor M
65b79f7d7c
Merge branch 'master' into es-syntax-for-default-value 2019-04-18 08:39:33 +02:00
Luiz Américo
f7a2a87ebb
Merge branch 'master' into named-destinations-es6 2019-04-17 19:31:11 -03:00
Danny Kirchmeier
c17bf39710 Fix links to page numbers within the document 2019-04-17 10:41:30 -05:00
Libor M
a2abfb4765 ES6 syntax for default values 2019-03-24 13:51:47 +01:00
Libor M
c8faebb6a5 fixed es syntax for default value 2019-03-24 13:39:26 +01:00
Libor M
1467ed092f fix format 2019-03-24 08:55:01 +01:00
Libor M
ad593cf422 support for named destinations 2019-03-24 08:35:36 +01:00
Luiz Américo
1e62e6ffe2 Cleanup remaining artifacts from CoffeScript conversion 2019-03-03 19:58:05 -03:00
Luiz Américo
38d9a2a5fa
Merge pull request #938 from blikblum/font-cache
Add fontLayoutCache option
2019-03-03 19:52:45 -03:00
Luiz Américo
dae45a44ae Rename fontCache to fontLayoutCache 2019-03-03 19:50:14 -03:00
Luiz Américo
b3a943bd9d Add fontCache option 2019-03-03 15:17:08 -03:00
Luiz Américo
b4be0c4ee4 Add standalone virtual file system implementation 2019-03-03 12:48:54 -03:00
Luiz Américo
43ce90211c Do not call fontkit.openSync 2019-03-02 21:04:56 -03:00
Luiz Américo
bd0631f782 Add option to defined default font 2019-03-02 20:42:56 -03:00
Luiz Américo
f52cca9214 Use valueOf when converting String object values 2019-02-16 20:25:02 -03:00
Libor M
83c5557726 fix printing permission 2019-02-10 14:21:24 +01:00
Luiz Américo
a6af76467c Add prettier npm script and run it in *.js files 2019-01-07 20:51:06 -03:00
Luiz Américo
e3c7d64f7b Fix PDF corruption when adding PNG images with transparency (not alpha channel) 2018-12-24 19:22:01 -03:00
Luiz Américo
dfb5f932ea Avoid code duplication in copy image data routine 2018-12-24 09:02:25 -03:00
Luiz Américo
b7edc73318 Fix 16bit png files with alpha channel 2018-12-23 22:16:21 -03:00
Luiz Américo
acbeceb2b3 Use a loop to copy png image data instead of Buffer.copy 2018-12-23 20:30:40 -03:00
Luiz Américo
ffdda49bd6 Fix grayscale PNG images with alpha channel 2018-12-23 00:44:21 -03:00
Luiz Américo
faad6e82db Fix defining Mask for grayscale transparent PNG files 2018-12-22 22:48:02 -03:00
Luiz Américo
eb60ed1efd
Merge pull request #889 from blikblum/png-sync
Use sync version of zlib deflate method to compress png images
2018-12-22 22:15:04 -03:00
Luiz Américo
8f1bb8c744
Merge pull request #888 from blikblum/simplify-pdfpage
Use property getter to define PDFPage lazy dictionaries
2018-12-22 22:14:49 -03:00
Luiz Américo
52c3b45e2e Use property getter to define PDFPage lazy dictionaries 2018-12-21 20:50:22 -03:00
Luiz Américo
4e90b87d82 Remove setTimeout call in PDFReference.finalize 2018-12-21 20:33:14 -03:00
Luiz Américo
6488c534f7 Use sync version of zlib deflate method to compress png images 2018-12-21 19:40:44 -03:00
Luiz Américo
883983aa3d Import test dependencies directly from src through babel-jest. Adapt relative paths accordingly 2018-12-20 13:33:05 -03:00
Yang Liu
2651a74012 Organize permissions in option to an object 2018-12-17 21:20:20 +09:00
Yang Liu
2ef9d7d6a3 Allow customization of randomizer 2018-12-17 21:20:19 +09:00
Yang Liu
f5b6ddd2a9 Add PDF security features with ES6 2018-12-17 21:20:19 +09:00
Luiz Américo
83f5f72431 Convert to EcmaScript (ES6+) (#859) 2018-11-29 08:14:45 -08:00
Aaron Fischer
2567227a92 Allows the text continue feature to work when the starting string is empty 2018-06-29 18:25:19 +02:00
MichaelK
93061f3210 Fix bug with \n translation (#797)
This causes \n characters to be displayed more consistently.
2018-06-29 18:23:07 +02:00
MichaelK
7839a41f15 Long running loop fix (#796)
Fix long-running loop
This can be caused by having text with a huge number of spaces.
2018-06-29 18:05:43 +02:00
Oleksandr Martyshchenko
56c7debb89 Fix linewrapper ellipsis inifinite loop (#779) 2018-06-29 17:54:15 +02:00
Ben
f91bdd61c1 Features/outline (#831)
Outline support by @alexvdev and @blforce
Close #216, close #13
2018-06-22 17:54:14 +02:00
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
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
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
5ae153490d Fix word spacing
We were mutating a cached position object. Fixes #687.
2017-07-01 18:30:58 -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