62 Commits

Author SHA1 Message Date
Ben Schmidt
ef5e52b2ad Support marking content. 2021-01-15 16:43:49 -03:00
Ben Schmidt
5df96274a6 Fix import syntax (at least for my Node version...). 2021-01-15 16:43:49 -03:00
Luiz Américo
326350b7f9 Fix eslint and prettier warnings 2020-09-09 20:35:10 -03:00
Luiz Américo
55732ab9a9
Rework integrations tests to compare pdf screenshots instead of raw content (#1162)
* Rework integrations tests to compare pdf screenshots instead of raw content

* Update documentation and configuration related to integration/visual tests
2020-09-09 17:33:28 -03:00
Libor M
ba62aeff11 fix Buffer() is deprecation warning #1114 2020-07-25 11:25:56 +02:00
Rocco Bruyn
812a6db941 Pass 'encoding' param of VFS' readFileSync to 'toString'
Fixes #1133
2020-07-19 16:53:45 +02:00
Luiz Américo
b57baf3e43 Fix acroform tests 2019-12-03 19:33:17 -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
Devon Govett
9fbd52e033
Merge branch 'master' into support-png-interlaced 2019-11-16 19:26:51 -08:00
Luiz Américo
4d8de9164c Fix gradient with multiple stops (#1045) 2019-11-15 22:56:10 -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
59a782e42a png: add interlaced images tests 2019-09-29 00:04:03 -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
cfb56e2097 Bug fixes found during unit testing. 2019-07-29 17:00:16 -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
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
Jim Pravetz
b53c6a7dd3 Added field align property support.
Fixed string field values so that they use CosString and not CosName.
2019-07-18 17:33:05 -07:00
Jim Pravetz
9d6f6f7d1f Fixed Subtype naming (was SubType) to get forms to start showing up. 2019-07-17 20:45:08 -07:00
Jim Pravetz
c086abe30a Begin adding AcroForm support 2019-07-17 18:13:29 -07:00
Sebastian
89396ebe44 unit tests added 2019-07-11 15:52:28 +02:00
Luiz Américo
f6ba2ef0c0 Fix infinite loop when text is positioned after page right margin. Based on #986. Fixes #477 #877 #391 2019-06-11 21:36:51 -03:00
Luiz Américo
1d7a18c468 Use local, optimized version of saslprep package 2019-06-06 19:44:27 -03:00
Floyd May
5eb7b0d978 code review tweaks 2019-05-07 08:32:25 -05:00
Floyd May
fd29fe2f99 throw errors when dash receives invalid args 2019-05-06 08:51:49 -05:00
Luiz Américo
f486d11efe Add dash unit tests 2019-05-04 22:30:34 -03:00
Luiz Américo
0938f79d1a Fix logic to check if test passes in toContainChunk 2019-05-04 22:30:08 -03:00
Luiz Américo
fba7f33c14 Normalize unit tests to use jest matcher and ES import 2019-05-04 21:10:57 -03:00
Luiz Américo
3f4052568d Improve output of toContainChunk jest matcher 2019-05-04 20:06:50 -03:00
Luiz Américo
5cfab52910 Add test helpers to make easier to write unit tests 2019-05-03 22:05:48 -03:00
Luiz Américo
512874f931 Fix object index in annotation test 2019-04-17 20:10:34 -03:00
Luiz Américo
f7a2a87ebb
Merge branch 'master' into named-destinations-es6 2019-04-17 19:31:11 -03:00
Luiz Américo
1c5c12afba Add link annotation test 2019-04-17 19:23:17 -03:00
Libor M
01ee515080 add test for goTo 2019-03-30 08:53:40 +01:00
Libor M
597b369fd1 improve tests 2019-03-24 16:58:28 +01:00
Libor M
eff6cbc2dd tests for destinations 2019-03-24 16:33:56 +01:00
Libor M
ee87e72c10 fixed test 2019-03-24 15:55:24 +01:00
Luiz Américo
8ffaef6809 Update tests snapshots and cleanup cyrilic string in text test 2019-03-04 10:42:54 -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
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
Luiz Américo
15636ee610 Update version to 0.9.0 (#901) 2019-01-27 19:08:42 -08:00
Luiz Américo
a6af76467c Add prettier npm script and run it in *.js files 2019-01-07 20:51:06 -03:00