@kittl/pdfkit 0.13.0 → 0.17.3
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/CHANGELOG.md +65 -0
- package/README.md +3 -3
- package/js/data/sRGB_IEC61966_2_1.icc +0 -0
- package/js/pdfkit.es.js +6086 -0
- package/js/pdfkit.es.js.map +1 -0
- package/js/pdfkit.es5.js +746 -1780
- package/js/pdfkit.es5.js.map +1 -1
- package/js/pdfkit.esnext.js +431 -1464
- package/js/pdfkit.esnext.js.map +1 -1
- package/js/pdfkit.js +1653 -2092
- package/js/pdfkit.js.map +1 -1
- package/js/pdfkit.standalone.js +33633 -29709
- package/js/virtual-fs.js +13 -30
- package/jsconfig.json +13 -0
- package/package.json +32 -35
- package/types/jest.custom-matchers.d.ts +28 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,71 @@
|
|
|
2
2
|
|
|
3
3
|
### Unreleased
|
|
4
4
|
|
|
5
|
+
### [v0.17.2] - 2025-08-30
|
|
6
|
+
|
|
7
|
+
- Fix rendering lists that spans across pages
|
|
8
|
+
|
|
9
|
+
### [v0.17.1] - 2025-05-02
|
|
10
|
+
|
|
11
|
+
- Fix null values in table cells rendering as `[object Object]`
|
|
12
|
+
- Fix further LineWrapper precision issues
|
|
13
|
+
- Optmize standard font handling. Less code, less memory usage
|
|
14
|
+
|
|
15
|
+
### [v0.17.0] - 2025-04-12
|
|
16
|
+
|
|
17
|
+
- Fix precision rounding issues in LineWrapper
|
|
18
|
+
- Fix fonts without a postscriptName
|
|
19
|
+
- Add support for dynamic sizing
|
|
20
|
+
- Add support for rotatable text
|
|
21
|
+
- Fix page cascade options when text overflows
|
|
22
|
+
- Add table generation
|
|
23
|
+
- Fix y position when using `image()` without x and y coordinates
|
|
24
|
+
- Improve Prettier configuration
|
|
25
|
+
|
|
26
|
+
### [v0.16.0] - 2024-12-29
|
|
27
|
+
|
|
28
|
+
- Update fontkit to 2.0
|
|
29
|
+
- Update linebreak to 1.1
|
|
30
|
+
- Add support for spot colors
|
|
31
|
+
- Add support to scale text horizontally
|
|
32
|
+
- Add an option to keep the indentation after a new line starts and allow to indent a whole paragraph/text element
|
|
33
|
+
- Add `Name` property for set custom icon for `note()`
|
|
34
|
+
- Fix sets tab order to "Structure" when a document is tagged
|
|
35
|
+
- Fix font cache collision for fonts with missing postscript name or bad TTF metadata or identical metadata for different fonts
|
|
36
|
+
- Fix for embedding fonts into PDF (font name must not contain spaces)
|
|
37
|
+
- Fix measuring text when OpenType features are passed in to .text()
|
|
38
|
+
|
|
39
|
+
### [v0.15.2] - 2024-12-15
|
|
40
|
+
|
|
41
|
+
- Fix index not counting when rendering ordered lists (#1517)
|
|
42
|
+
- Fix PDF/A3 compliance of attachments
|
|
43
|
+
- Fix CIDSet generation only for PDF/A1 subset
|
|
44
|
+
- Fix missing acroform font dictionary
|
|
45
|
+
- Fix modify time comparison check equality embedded files
|
|
46
|
+
|
|
47
|
+
### [v0.15.1] - 2024-10-30
|
|
48
|
+
|
|
49
|
+
- Fix browserify transform sRGB_IEC61966_2_1.icc file
|
|
50
|
+
- Fix time comparison check equality embedded files
|
|
51
|
+
|
|
52
|
+
### [v0.15.0] - 2024-03-23
|
|
53
|
+
|
|
54
|
+
- Add subset for PDF/UA
|
|
55
|
+
- Fix for line breaks in list items (#1486)
|
|
56
|
+
- Fix for soft hyphen not being replaced by visible hyphen if necessary (#457)
|
|
57
|
+
- Optimize output files by ignoring identity transforms
|
|
58
|
+
- Fix for Acroforms - setting an option to false will still apply the flag (#1495)
|
|
59
|
+
- Fix for text extraction in PDFium-based viewers due to invalid ToUnicodeMap (#1498)
|
|
60
|
+
- Remove deprecated `write` method
|
|
61
|
+
- Drop support for Node.js < 18 and for browsers released before 2020
|
|
62
|
+
|
|
63
|
+
### [v0.14.0] - 2023-11-09
|
|
64
|
+
|
|
65
|
+
- Add support for PDF/A-1b, PDF/A-1a, PDF/A-2b, PDF/A-2a, PDF/A-3b, PDF/A-3a
|
|
66
|
+
- Update crypto-js to v4.2.0 (properly fix security issue)
|
|
67
|
+
|
|
68
|
+
- Add support for EXIF orientation on JPEG images (#626 and #1353)
|
|
69
|
+
|
|
5
70
|
### [v0.13.0] - 2021-10-24
|
|
6
71
|
|
|
7
72
|
- Add tiling pattern support
|
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ Installation uses the [npm](http://npmjs.org/) package manager. Just type the fo
|
|
|
31
31
|
- Transformations
|
|
32
32
|
- Linear and radial gradients
|
|
33
33
|
- Text
|
|
34
|
-
- Line wrapping
|
|
34
|
+
- Line wrapping (with soft hyphen recognition)
|
|
35
35
|
- Text alignments
|
|
36
36
|
- Bulleted lists
|
|
37
37
|
- Font embedding
|
|
@@ -128,8 +128,8 @@ complex documents with a very small amount of code. For more, see the `demo` fol
|
|
|
128
128
|
|
|
129
129
|
There are three ways to use PDFKit in the browser:
|
|
130
130
|
|
|
131
|
-
- Use [Browserify](http://browserify.org/). See demo [source code](
|
|
132
|
-
- Use [webpack](https://webpack.js.org/). See [complete example](https://github.com/
|
|
131
|
+
- Use [Browserify](http://browserify.org/). See demo [source code](https://github.com/foliojs/pdfkit/blob/master/examples/browserify/browser.js) and [build script](https://github.com/foliojs/pdfkit/blob/master/package.json#L62)
|
|
132
|
+
- Use [webpack](https://webpack.js.org/). See [complete example](https://github.com/foliojs/pdfkit/blob/master/examples/webpack).
|
|
133
133
|
- Use prebuilt version. Distributed as `pdfkit.standalone.js` file in the [releases](https://github.com/foliojs/pdfkit/releases) or in the package `js` folder.
|
|
134
134
|
|
|
135
135
|
In addition to PDFKit, you'll need somewhere to stream the output to. HTML5 has a
|
|
Binary file
|