pdfkit 0.17.1 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.yarnrc.yml ADDED
@@ -0,0 +1,3 @@
1
+ yarnPath: .yarn/releases/yarn-4.10.3.cjs
2
+
3
+ nodeLinker: node-modules
package/CHANGELOG.md CHANGED
@@ -1,130 +1,150 @@
1
- ## pdfkit changelog
2
-
3
- ### Unreleased
4
-
5
- ### [v0.17.1] - 2025-05-02
6
-
7
- - Fix null values in table cells rendering as `[object Object]`
8
- - Fix further LineWrapper precision issues
9
- - Optmize standard font handling. Less code, less memory usage
10
-
11
- ### [v0.17.0] - 2025-04-12
12
-
13
- - Fix precision rounding issues in LineWrapper
14
- - Fix fonts without a postscriptName
15
- - Add support for dynamic sizing
16
- - Add support for rotatable text
17
- - Fix page cascade options when text overflows
18
- - Add table generation
19
- - Fix y position when using `image()` without x and y coordinates
20
- - Improve Prettier configuration
21
-
22
- ### [v0.16.0] - 2024-12-29
23
-
24
- - Update fontkit to 2.0
25
- - Update linebreak to 1.1
26
- - Add support for spot colors
27
- - Add support to scale text horizontally
28
- - Add an option to keep the indentation after a new line starts and allow to indent a whole paragraph/text element
29
- - Add `Name` property for set custom icon for `note()`
30
- - Fix sets tab order to "Structure" when a document is tagged
31
- - Fix font cache collision for fonts with missing postscript name or bad TTF metadata or identical metadata for different fonts
32
- - Fix for embedding fonts into PDF (font name must not contain spaces)
33
- - Fix measuring text when OpenType features are passed in to .text()
34
-
35
- ### [v0.15.2] - 2024-12-15
36
-
37
- - Fix index not counting when rendering ordered lists (#1517)
38
- - Fix PDF/A3 compliance of attachments
39
- - Fix CIDSet generation only for PDF/A1 subset
40
- - Fix missing acroform font dictionary
41
- - Fix modify time comparison check equality embedded files
42
-
43
- ### [v0.15.1] - 2024-10-30
44
-
45
- - Fix browserify transform sRGB_IEC61966_2_1.icc file
46
- - Fix time comparison check equality embedded files
47
-
48
- ### [v0.15.0] - 2024-03-23
49
-
50
- - Add subset for PDF/UA
51
- - Fix for line breaks in list items (#1486)
52
- - Fix for soft hyphen not being replaced by visible hyphen if necessary (#457)
53
- - Optimize output files by ignoring identity transforms
54
- - Fix for Acroforms - setting an option to false will still apply the flag (#1495)
55
- - Fix for text extraction in PDFium-based viewers due to invalid ToUnicodeMap (#1498)
56
- - Remove deprecated `write` method
57
- - Drop support for Node.js < 18 and for browsers released before 2020
58
-
59
- ### [v0.14.0] - 2023-11-09
60
-
61
- - Add support for PDF/A-1b, PDF/A-1a, PDF/A-2b, PDF/A-2a, PDF/A-3b, PDF/A-3a
62
- - Update crypto-js to v4.2.0 (properly fix security issue)
63
-
64
- - Add support for EXIF orientation on JPEG images (#626 and #1353)
65
-
66
- ### [v0.13.0] - 2021-10-24
67
-
68
- - Add tiling pattern support
69
-
70
- ### [v0.12.3] - 2021-08-01
71
-
72
- - Remove examples from published package
73
-
74
- ### [v0.12.2] - 2021-08-01
75
-
76
- - Fix for PDF accessibility check. (#1265)
77
- - Allow applying 'underline' and 'strike' text styling together on a text
78
- - Allow to specify the AcroForm text fontSize
79
- - Update crypto-js to v4.0 (properly fix security issue)
80
-
81
- ### [v0.12.1] - 2021-04-10
82
-
83
- - Update crypto-js to v3.3 (fix security issue)
84
- - Update fontkit to 1.8.1
85
-
86
- ### [v0.12.0] - 2021-04-04
87
-
88
- - Add support for Embedded Files and File Attachment Annotations
89
- - Accessibility support
90
- - Replace integration tests by visual regression tests
91
- - Fix access permissions in PDF version 1.7ext3
92
- - Fix Buffer() is deprecation warning
93
- - Add `forms.md` to generate documentation files
94
- - Fix "@" in FontName
95
-
96
- ### [v0.11.0] - 2019-12-03
97
-
98
- - Fix infinite loop when an individual character is bigger than the width of the text.
99
- - Fix infinite loop when text is positioned after page right margin
100
- - Allow links in continued text to be stopped by setting link to null
101
- - Add support to interlaced PNG files
102
- - Do not emit \_interopDefault helper in commonjs build
103
- - Fix gradient with multiple stops (#1045)
104
- - Set link annotation flag to print by default
105
- - Add support for AcroForms
106
- - Drop support for (uncommon) cid less fonts on standalone build (reduces bundle size)
107
-
108
- ### [v0.10.0] - 2019-06-06
109
-
110
- - Fix links to pages within the document
111
- - Add support for named destinations
112
- - Throw errors when `dash(...)` is passed invalid lengths
113
- - Remove PDFDocument#output method
114
- - Add standalone build (js/pdfkit.standalone.js)
115
-
116
- ### [v0.9.1] - 2019-04-30
117
-
118
- - Fix setting printing permission
119
- - Fix corruption of string objects in browser
120
- - Add option to set default font
121
- - Remove call to fontkit.openSync
122
- - Add standalone virtual file system implementation
123
- - Add option (fontLayoutCache) to disable font layout cache
124
-
125
- ### [v0.9.0] - 2019-01-28
126
-
127
- - Convert to code base from coffescript to ES6+
128
- - Fix loading grayscale / transparent PNG files
129
- - Reduce number of calls to async functions
130
- - Implement encryption / access control
1
+ ## pdfkit changelog
2
+
3
+ ### Unreleased
4
+
5
+ ### [v0.18.0] - 2026-03-14
6
+
7
+ - Fix garbled text copying in Chrome/Edge for PDFs with >256 unique characters (#1659)
8
+ - Fix Link accessibility issues
9
+ - Fix Table Accessibility Issue: Operator CS/cs not allowed in this current state
10
+ - Fix Interlaced PNG with indexed transparency rendered incorrectly
11
+ - Fix SVG path parser incorrectly handle arc flags without separators
12
+ - Add pageLayout option to control how pages are displayed in PDF viewers
13
+ - Preserve existing PageMode instead of overwriting when adding outlines
14
+ - Add userUnit option for custom page units (PDF 1.6)
15
+ - Support outlines that jump to specific page positions with custom zoom level
16
+ - Add robust handling of null byte padding in JPEG images
17
+ - Replace outdated jpeg-exif with minimal implementation
18
+ - Replace outdated crypto-js with maintained small alternatives
19
+ - Fix issue with indentation with `indentAllLines: true` when a new page is created
20
+
21
+ ### [v0.17.2] - 2025-08-30
22
+
23
+ - Fix rendering lists that spans across pages
24
+
25
+ ### [v0.17.1] - 2025-05-02
26
+
27
+ - Fix null values in table cells rendering as `[object Object]`
28
+ - Fix further LineWrapper precision issues
29
+ - Optmize standard font handling. Less code, less memory usage
30
+
31
+ ### [v0.17.0] - 2025-04-12
32
+
33
+ - Fix precision rounding issues in LineWrapper
34
+ - Fix fonts without a postscriptName
35
+ - Add support for dynamic sizing
36
+ - Add support for rotatable text
37
+ - Fix page cascade options when text overflows
38
+ - Add table generation
39
+ - Fix y position when using `image()` without x and y coordinates
40
+ - Improve Prettier configuration
41
+
42
+ ### [v0.16.0] - 2024-12-29
43
+
44
+ - Update fontkit to 2.0
45
+ - Update linebreak to 1.1
46
+ - Add support for spot colors
47
+ - Add support to scale text horizontally
48
+ - Add an option to keep the indentation after a new line starts and allow to indent a whole paragraph/text element
49
+ - Add `Name` property for set custom icon for `note()`
50
+ - Fix sets tab order to "Structure" when a document is tagged
51
+ - Fix font cache collision for fonts with missing postscript name or bad TTF metadata or identical metadata for different fonts
52
+ - Fix for embedding fonts into PDF (font name must not contain spaces)
53
+ - Fix measuring text when OpenType features are passed in to .text()
54
+
55
+ ### [v0.15.2] - 2024-12-15
56
+
57
+ - Fix index not counting when rendering ordered lists (#1517)
58
+ - Fix PDF/A3 compliance of attachments
59
+ - Fix CIDSet generation only for PDF/A1 subset
60
+ - Fix missing acroform font dictionary
61
+ - Fix modify time comparison check equality embedded files
62
+
63
+ ### [v0.15.1] - 2024-10-30
64
+
65
+ - Fix browserify transform sRGB_IEC61966_2_1.icc file
66
+ - Fix time comparison check equality embedded files
67
+
68
+ ### [v0.15.0] - 2024-03-23
69
+
70
+ - Add subset for PDF/UA
71
+ - Fix for line breaks in list items (#1486)
72
+ - Fix for soft hyphen not being replaced by visible hyphen if necessary (#457)
73
+ - Optimize output files by ignoring identity transforms
74
+ - Fix for Acroforms - setting an option to false will still apply the flag (#1495)
75
+ - Fix for text extraction in PDFium-based viewers due to invalid ToUnicodeMap (#1498)
76
+ - Remove deprecated `write` method
77
+ - Drop support for Node.js < 18 and for browsers released before 2020
78
+
79
+ ### [v0.14.0] - 2023-11-09
80
+
81
+ - Add support for PDF/A-1b, PDF/A-1a, PDF/A-2b, PDF/A-2a, PDF/A-3b, PDF/A-3a
82
+ - Update crypto-js to v4.2.0 (properly fix security issue)
83
+
84
+ - Add support for EXIF orientation on JPEG images (#626 and #1353)
85
+
86
+ ### [v0.13.0] - 2021-10-24
87
+
88
+ - Add tiling pattern support
89
+
90
+ ### [v0.12.3] - 2021-08-01
91
+
92
+ - Remove examples from published package
93
+
94
+ ### [v0.12.2] - 2021-08-01
95
+
96
+ - Fix for PDF accessibility check. (#1265)
97
+ - Allow applying 'underline' and 'strike' text styling together on a text
98
+ - Allow to specify the AcroForm text fontSize
99
+ - Update crypto-js to v4.0 (properly fix security issue)
100
+
101
+ ### [v0.12.1] - 2021-04-10
102
+
103
+ - Update crypto-js to v3.3 (fix security issue)
104
+ - Update fontkit to 1.8.1
105
+
106
+ ### [v0.12.0] - 2021-04-04
107
+
108
+ - Add support for Embedded Files and File Attachment Annotations
109
+ - Accessibility support
110
+ - Replace integration tests by visual regression tests
111
+ - Fix access permissions in PDF version 1.7ext3
112
+ - Fix Buffer() is deprecation warning
113
+ - Add `forms.md` to generate documentation files
114
+ - Fix "@" in FontName
115
+
116
+ ### [v0.11.0] - 2019-12-03
117
+
118
+ - Fix infinite loop when an individual character is bigger than the width of the text.
119
+ - Fix infinite loop when text is positioned after page right margin
120
+ - Allow links in continued text to be stopped by setting link to null
121
+ - Add support to interlaced PNG files
122
+ - Do not emit \_interopDefault helper in commonjs build
123
+ - Fix gradient with multiple stops (#1045)
124
+ - Set link annotation flag to print by default
125
+ - Add support for AcroForms
126
+ - Drop support for (uncommon) cid less fonts on standalone build (reduces bundle size)
127
+
128
+ ### [v0.10.0] - 2019-06-06
129
+
130
+ - Fix links to pages within the document
131
+ - Add support for named destinations
132
+ - Throw errors when `dash(...)` is passed invalid lengths
133
+ - Remove PDFDocument#output method
134
+ - Add standalone build (js/pdfkit.standalone.js)
135
+
136
+ ### [v0.9.1] - 2019-04-30
137
+
138
+ - Fix setting printing permission
139
+ - Fix corruption of string objects in browser
140
+ - Add option to set default font
141
+ - Remove call to fontkit.openSync
142
+ - Add standalone virtual file system implementation
143
+ - Add option (fontLayoutCache) to disable font layout cache
144
+
145
+ ### [v0.9.0] - 2019-01-28
146
+
147
+ - Convert to code base from coffescript to ES6+
148
+ - Fix loading grayscale / transparent PNG files
149
+ - Reduce number of calls to async functions
150
+ - Implement encryption / access control
package/LICENSE CHANGED
@@ -1,8 +1,8 @@
1
- MIT LICENSE
2
- Copyright (c) 2014 Devon Govett
3
-
4
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5
-
6
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7
-
1
+ MIT LICENSE
2
+ Copyright (c) 2014 Devon Govett
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5
+
6
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7
+
8
8
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.