Luiz Américo
44c0d46ff0
Do not bundle iconv-lite on standalone build
2019-12-03 19:44:00 -03:00
Luiz Américo
9073796c1a
Merge pull request #1064 from blikblum/fix-tests
...
Fix acroform tests
2019-12-03 19:34:30 -03:00
Luiz Américo
b57baf3e43
Fix acroform tests
2019-12-03 19:33:17 -03:00
Luiz Américo
05bc0f3e09
Merge pull request #1002 from jpravetz/master
...
Add AcroForms output support
2019-12-02 21:58:52 -03:00
Jim Pravetz
e2a464c1dc
Merge branch 'master' of https://github.com/foliojs/pdfkit
...
# Conflicts:
# lib/mixins/annotations.js
2019-12-02 11:09:47 -08:00
Jim Pravetz
e2eed1f311
Update forms.md
...
Fix typo readyOnly -> readOnly
2019-12-02 10:52:21 -08:00
Luiz Américo
4a7f0dbc5f
Merge pull request #1030 from blikblum/support-png-interlaced
...
Implement interlaced PNG support
2019-11-17 07:11:40 -03:00
Luiz Américo
40768821f5
Update png-js dependency to v1.0.0
2019-11-17 07:10:54 -03:00
Devon Govett
9fbd52e033
Merge branch 'master' into support-png-interlaced
2019-11-16 19:26:51 -08:00
Luiz Américo
733c1210a9
Update changelog
2019-11-15 23:00:55 -03:00
Luiz Américo
a7116f244c
Pass number function directly to map
2019-11-15 22:59:00 -03:00
Luiz Américo
4d8de9164c
Fix gradient with multiple stops ( #1045 )
2019-11-15 22:56:10 -03:00
Luiz Américo
b284473bcc
Merge pull request #1054 from blikblum/nointerop
...
Do not emit interopDefault helper
2019-11-14 21:56:07 -03:00
Luiz Américo
f0d7da28dd
Do not emit interopDefault helper
2019-11-14 21:55:52 -03:00
Luiz Américo
d09df0ab46
Merge pull request #1052 from blikblum/master
...
Update dependencies
2019-11-14 21:28:09 -03:00
Luiz Américo
10920f183e
Update dependencies
2019-11-14 21:22:19 -03:00
Luiz Américo
44e265bc2a
Merge pull request #1023 from URSELF-FR/master
...
Fix infinite loop when lineWidth is smaller than width of a character
2019-11-14 12:52:14 -03:00
VincentGuinaudeau
acf318b87c
comments, test and changelog entry for fix when a character is too bigger than the width of the text.
2019-11-14 12:08:04 +01:00
Luiz Américo
51d4fdd0a3
Merge pull request #1020 from padraiggalvin/link-annotation-flag
...
Set link annotation flag to print by default
2019-11-13 19:32:04 -03:00
Luiz Américo
3af8c95d47
Merge pull request #1031 from blikblum/master
...
Simplify github PR template
2019-09-29 00:49:46 -03:00
Luiz Américo
dfc6bf3b72
Simplify github PR template
2019-09-29 00:47:45 -03:00
Luiz Américo
508793ece4
Update changelog
2019-09-29 00:37:33 -03:00
Luiz Américo
59a782e42a
png: add interlaced images tests
2019-09-29 00:04:03 -03:00
Luiz Américo
30ec8b0c30
png: use predictor 1 (none) for interlaced images
2019-09-29 00:03:07 -03:00
Luiz Américo
c658bef0cc
png: decode pixels when image is interlaced
2019-09-28 21:26:11 -03:00
Luiz Américo
50dbed9401
Remove redundant value existence checks
2019-09-28 21:21:30 -03:00
VincentGuinaudeau
17e08a66dd
Fix infinite loop when lineWidth is smaller than width of a character. Not sure about what to do in this case yet.
2019-09-11 14:57:51 +02:00
Pádraig Galvin
058f6fa5e7
Fix typo in comment
2019-09-06 18:54:41 +02:00
Pádraig Galvin
f6cd98666e
Set link annotation flag to print
2019-09-05 16:41:00 +02:00
Luiz Américo
1228c259bd
Merge pull request #1019 from padraiggalvin/define-font-mapping
...
Explicitly define default value for CIDToGIDMap
2019-09-04 11:17:31 -03:00
Pádraig Galvin
068e9afe05
Explicitly define default value for CIDToGIDMap
2019-09-04 15:04:27 +02:00
Luiz Américo
4a64e94c3a
Merge pull request #1013 from HughePaul/patch-1
...
Allow removing link annotation in continued text
2019-09-02 19:15:49 -03:00
Paul Winkler
b410466068
enable removing link annotation in continued text
...
Text options currently add a link annotation unless the link is `undefined` or `null`. When the text options are built using the continued flag any value that is `null` or `undefined` is overridden by the continued options. As `0` is used for a first page link, it should be allowed to specify `false` to stop continued text being a link.
2019-09-02 16:45:58 +01:00
Jim Pravetz
6160305701
Removed package-lock.json as it conflicts with yarn.lock
2019-07-29 17:36:23 -07:00
Jim Pravetz
56978221e9
Reverting jest.config.js changes from this PR
2019-07-29 17:33:12 -07:00
Jim Pravetz
4b0f93fb9a
Fix bug with format number displaying currency.
...
Remove new additions to gitignore.
2019-07-29 17:25:10 -07:00
Jim Pravetz
cfb56e2097
Bug fixes found during unit testing.
2019-07-29 17:00:16 -07:00
Jim Pravetz
5a2fdd71eb
Removed direct support for radio and checkboxes.
...
Added support for options.select, options.value, options.defaultValue.
Fixed font implementation so that individual form fields can have their own font setting.
Renamed methods, reducing reference to PDF langauge syntax.
Added 'type' specifier to formAnnotation method.
2019-07-29 15:46:44 -07:00
Jim Pravetz
293b66b794
Documentation fixes.
...
Removed unused method from acroforms mixin.
2019-07-28 22:28:36 -07:00
Jim Pravetz
8b92a5173b
Making options and formatting more user friendly and improving the docs.
...
Feedback from https://github.com/foliojs/pdfkit/pull/1002
2019-07-28 22:14:20 -07:00
Jim Pravetz
0514363199
Reformatted some files using prettier.
...
Rename widgetAnnot method to widgetAnnotation
Rename initAcroForm method to initForms
Ensure existing unit tests pass.
Add formChoice example to test-acroform.js.
Minor documentation changes for forms.
2019-07-25 15:07:10 -07:00
Jim Pravetz
1c8bd992f6
Finished documentation for AcroForms support
2019-07-24 14:44:14 -07:00
Jim Pravetz
124a0aefcd
Unit tests for AcroForm named javascript, push button, heirarchical fields all working.
2019-07-24 14:33:06 -07:00
Jim Pravetz
554cf3d9ad
Changed addNamedJavaScript to accept string instead of (nodejs-only) buffer.
...
Got jest tests running by setting setupFilesAfterEnv to include toContainChunk (not clear why this became necessary).
Modified toContainChunk to accept RegExp for all but first parameter of array.
AcroForms partial tests working.
2019-07-24 13:56:24 -07:00
Jim Pravetz
e4924bda9a
Do not add JavaScript to Catalog/Names until a named JavaScript is added.
...
Needed to prevent existing unit tests from failing.
2019-07-24 12:09:42 -07:00
Jim Pravetz
6478048630
Bug fixes for setting Ff flag and alignment.
2019-07-21 18:31:13 -07:00
Jim Pravetz
bf75b0881a
Added shortcut support for formatting form text inputs.
...
Fixed annotations to not automatically add Border and C for Widget annotations.
More documentation.
2019-07-21 12:19:08 -07:00
Jim Pravetz
9f6c5fb825
Added documentation for AcroForms.
...
Fixed spelling of NeedAppearances (doh!).
Added backgroundColor and borderColor options (for push buttons).
Added label option (for push buttons).
2019-07-20 21:16:58 -07:00
Jim Pravetz
1553ca8498
Fixes to get field heirarchy working
2019-07-19 09:04:40 -07:00
Jim Pravetz
e135aad920
Adding hierarchical field support to AcroForms
2019-07-18 21:28:36 -07:00