494 Commits

Author SHA1 Message Date
Luiz Américo
7ac71960eb Upgrade to latest browserify 2019-02-16 12:15:36 -03:00
Luiz Américo
82a76ff697
Merge pull request #917 from liborm85/security-printing-fix
Bugfix printing privilege
2019-02-10 14:54:39 -03:00
Libor M
83c5557726 fix printing permission 2019-02-10 14:21:24 +01:00
Devon Govett
ee3fa44ac4 Upgrade fontkit v0.9.0 2019-01-27 20:39:43 -08:00
Devon Govett
9d9e94b805 Commit yarn.lock 2019-01-27 19:30:03 -08:00
Devon Govett
64d2fb86d4 A few docs fixes 2019-01-27 19:29:58 -08:00
Luiz Américo
15636ee610 Update version to 0.9.0 (#901) 2019-01-27 19:08:42 -08:00
Luiz Américo
5d527a32c8
Merge pull request #900 from blikblum/master
Add prettier npm script and run it in *.js files
2019-01-07 21:56:47 -02: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
43796e0ff1
Merge pull request #898 from blikblum/master
Add contributing, issue and pull request templates
2019-01-07 06:17:57 -03:00
Luiz Américo
8ee8aa93a1 Add contributing, issue and pull request templates 2018-12-31 15:03:11 -03:00
Luiz Américo
4d4a191449
Merge pull request #895 from blikblum/fix-png-finalize
Fix PDF corruption when adding PNG images with transparency (not alpha channel)
2018-12-29 18:28:36 -03:00
Ry Jones
ea7927c67a Remove outdated Gratipay reference (#896)
Signed-off-by: Ry Jones <ry@linux.com>
2018-12-25 21:41:49 -05: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
b83371e067
Merge pull request #893 from blikblum/fix-16bit-alpha
Fix 16bit png files with alpha channel
2018-12-24 10:36:13 -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
2955161da7
Merge pull request #891 from blikblum/fix-grayscale-png
Fix transparent grayscale png
2018-12-23 21:19:56 -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
7c6134aa4e Add new png tests 2018-12-22 22:48:02 -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
acef5e0ffc
Merge pull request #887 from blikblum/remove-reference-timeout
Remove setTimeout call in PDFReference.finalize
2018-12-22 22:14:35 -03:00
Luiz Américo
f2208a7c20 Add png unit tests 2018-12-21 23:40:50 -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
56d4327181
Merge pull request #886 from blikblum/improve-tests
Improve tests structure

    Load src files directly allowing to test without build step and test isolated classes
    Separate tests into two categories: unit and integration
    Allow to use ES modules in tests
    Ensure test output is the same across different runs / systems
2018-12-21 20:23:22 -03:00
Luiz Américo
fe8632befc Add png-benchmark demo 2018-12-21 20:22:30 -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
a1156fbff7 Move integration tests into a separated directory and add script to run only integration tests 2018-12-20 13:52:37 -03:00
Luiz Américo
8bf29c5d9c Update saved snapshots 2018-12-20 13:36:12 -03:00
Luiz Américo
5f125f792d Mock PDFSecurity methods in tests to ensure same output accross different runs or systems 2018-12-20 13:34:54 -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
Luiz Américo
c09cd64904
Merge pull request #884 from blikblum/cleanup-docs
Complete coffee -> JS conversion
2018-12-19 22:05:29 -02:00
Luiz Américo
3eae1855f6 Remove coffee-script dependency 2018-12-19 21:02:15 -03:00
Luiz Américo
e595a8ebf5 Convert coffeescript code in README.md 2018-12-19 20:39:29 -03:00
Luiz Américo
aec971f2c8 Rename docs files, removing the coffee sufix 2018-12-19 20:34:40 -03:00
Luiz Américo
5274136477 Complete coffee -> JS conversion of docs 2018-12-19 20:04:44 -03:00
Luiz Américo
d5d8e3c613
Merge pull request #820 from zesik/master
Implement encryption and access privileges
2018-12-19 20:54:36 -02:00
Yang Liu
c400dfa9e6 Add unit tests for trailer 2018-12-18 20:56:28 +09:00
Yang Liu
2651a74012 Organize permissions in option to an object 2018-12-17 21:20:20 +09:00
Yang Liu
6398cca899 Update readme and docs 2018-12-17 21:20:20 +09:00
Yang Liu
678148a286 Downgrade dependency version to avoid fs operation 2018-12-17 21:20:19 +09:00
Yang Liu
870260c629 Add tests for security features and update snapshots 2018-12-17 21:20:19 +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
6f0d5ff4ff
Merge pull request #883 from blikblum/add-reference-unit-test
Add initial PDFReference specs
2018-12-16 23:28:08 -02:00
Luiz Américo
b3c2790cd5 Add initial reference spec 2018-12-16 22:12:21 -03:00