pdfmake 0.3.0-beta.1 → 0.3.0-beta.11
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/.idea/workspace.xml +20 -0
- package/CHANGELOG.md +65 -1
- package/LICENSE +1 -1
- package/README.md +3 -1
- package/build/pdfmake.js +65069 -73247
- package/build/pdfmake.js.map +1 -1
- package/build/pdfmake.min.js +2 -2
- package/build/pdfmake.min.js.map +1 -1
- package/build/vfs_fonts.js +4 -4
- package/eslint.config.mjs +52 -0
- package/fonts/Roboto/Roboto-Italic.ttf +0 -0
- package/fonts/Roboto/Roboto-Medium.ttf +0 -0
- package/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
- package/fonts/Roboto/Roboto-Regular.ttf +0 -0
- package/js/3rd-party/svg-to-pdfkit/source.js +247 -922
- package/js/3rd-party/svg-to-pdfkit.js +2 -6
- package/js/DocMeasure.js +24 -148
- package/js/DocPreprocessor.js +8 -55
- package/js/DocumentContext.js +44 -62
- package/js/ElementWriter.js +42 -74
- package/js/LayoutBuilder.js +225 -177
- package/js/Line.js +7 -27
- package/js/OutputDocument.js +6 -16
- package/js/OutputDocumentServer.js +2 -9
- package/js/PDFDocument.js +24 -43
- package/js/PageElementWriter.js +14 -35
- package/js/PageSize.js +3 -17
- package/js/Printer.js +102 -49
- package/js/Renderer.js +37 -95
- package/js/SVGMeasure.js +3 -23
- package/js/StyleContextStack.js +13 -55
- package/js/TableProcessor.js +94 -136
- package/js/TextBreaker.js +4 -47
- package/js/TextDecorator.js +3 -41
- package/js/TextInlines.js +10 -52
- package/js/URLResolver.js +18 -24
- package/js/base.js +3 -20
- package/js/browser-extensions/OutputDocumentBrowser.js +7 -20
- package/js/browser-extensions/URLBrowserResolver.js +7 -20
- package/js/browser-extensions/fonts/Roboto.js +0 -4
- package/js/browser-extensions/index.js +2 -19
- package/js/browser-extensions/pdfMake.js +0 -14
- package/js/browser-extensions/standard-fonts/Courier.js +0 -4
- package/js/browser-extensions/standard-fonts/Helvetica.js +0 -4
- package/js/browser-extensions/standard-fonts/Symbol.js +0 -4
- package/js/browser-extensions/standard-fonts/Times.js +0 -4
- package/js/browser-extensions/standard-fonts/ZapfDingbats.js +0 -4
- package/js/columnCalculator.js +30 -24
- package/js/helpers/node.js +3 -27
- package/js/helpers/tools.js +0 -8
- package/js/helpers/variableType.js +15 -8
- package/js/index.js +0 -6
- package/js/qrEnc.js +133 -222
- package/js/standardPageSizes.js +2 -3
- package/js/tableLayouts.js +4 -33
- package/js/virtual-fs.js +4 -21
- package/package.json +25 -22
- package/src/DocMeasure.js +19 -6
- package/src/DocPreprocessor.js +6 -0
- package/src/DocumentContext.js +35 -20
- package/src/ElementWriter.js +45 -5
- package/src/LayoutBuilder.js +201 -18
- package/src/OutputDocument.js +1 -1
- package/src/PDFDocument.js +27 -1
- package/src/PageElementWriter.js +6 -2
- package/src/Printer.js +93 -7
- package/src/Renderer.js +35 -0
- package/src/StyleContextStack.js +3 -44
- package/src/TableProcessor.js +64 -20
- package/src/TextDecorator.js +1 -1
- package/src/URLResolver.js +16 -8
- package/src/browser-extensions/URLBrowserResolver.js +6 -3
- package/src/browser-extensions/index.js +1 -1
- package/src/browser-extensions/pdfMake.js +0 -14
- package/src/columnCalculator.js +24 -3
- package/src/helpers/variableType.js +11 -0
- package/src/qrEnc.js +5 -3
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ChangeListManager">
|
|
4
|
+
<list default="true" id="c4bce3c1-f7dd-40d1-aca3-b1df83792070" name="Default Changelist" comment="" />
|
|
5
|
+
<option name="SHOW_DIALOG" value="false" />
|
|
6
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
7
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
8
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
9
|
+
</component>
|
|
10
|
+
<component name="ComposerSettings">
|
|
11
|
+
<execution />
|
|
12
|
+
</component>
|
|
13
|
+
<component name="PropertiesComponent">
|
|
14
|
+
<property name="node.js.selected.package.tslint" value="(autodetect)" />
|
|
15
|
+
<property name="ts.external.directory.path" value="C:\Program Files\JetBrains\PhpStorm 2021.1.2\plugins\JavaScriptLanguage\jsLanguageServicesImpl\external" />
|
|
16
|
+
</component>
|
|
17
|
+
<component name="TaskManager">
|
|
18
|
+
<servers />
|
|
19
|
+
</component>
|
|
20
|
+
</project>
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,70 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
0.3.0-beta.
|
|
3
|
+
## 0.3.0-beta.11 - 2024-10-09
|
|
4
|
+
|
|
5
|
+
- Fixed drawing top horizontal line of the table with page break
|
|
6
|
+
|
|
7
|
+
## 0.3.0-beta.10 - 2024-09-22
|
|
8
|
+
|
|
9
|
+
- Drop support Internet Explorer 11 (Microsoft will not support from 2022)
|
|
10
|
+
- Minimal supported version Node.js 18 LTS
|
|
11
|
+
- Update Roboto font (version 3.010)
|
|
12
|
+
- Fixed page break in a column group
|
|
13
|
+
- Fixed saving margins in an unbreakable block
|
|
14
|
+
- Fixed fillColor items in unbreakable blocks
|
|
15
|
+
- Fixed calculating correctly the 'y' at the end of a rowSpan with dontBreakRows
|
|
16
|
+
- Fixed margins (top/bottom) of nodes and row height are considered for breaking page
|
|
17
|
+
- Fixed margins after page break
|
|
18
|
+
- Fixed margins of nodes with relativePosition or absolutePosition are ignored and don't interfere with the regular flow of the layout
|
|
19
|
+
|
|
20
|
+
## 0.3.0-beta.9 - 2024-08-09
|
|
21
|
+
|
|
22
|
+
- Fixed and validates input values headerRows and keepWithHeaderRows
|
|
23
|
+
- Fixed numbering nested ordered lists
|
|
24
|
+
- Speed up StyleContextStack.autopush() for large tables
|
|
25
|
+
- Fixed widths of table columns with percentages
|
|
26
|
+
- Fixed storing the correct context in the ending cell of a row span when there were nested column groups (columns or tables)
|
|
27
|
+
|
|
28
|
+
## 0.3.0-beta.8 - 2024-03-07
|
|
29
|
+
|
|
30
|
+
- Removed unused brfs dependency
|
|
31
|
+
|
|
32
|
+
## 0.3.0-beta.7 - 2024-01-01
|
|
33
|
+
|
|
34
|
+
- Minimal supported version Node.js 16 LTS
|
|
35
|
+
- Added padding option for QR code
|
|
36
|
+
- Allow the document language to be specified
|
|
37
|
+
- Fixed cover image size inside table
|
|
38
|
+
- Fixed "Cannot read properties of undefined (reading 'bottomMost')" if table contains too few rows
|
|
39
|
+
- Fixed invalid source-maps in builded js file
|
|
40
|
+
|
|
41
|
+
## 0.3.0-beta.6 - 2023-11-09
|
|
42
|
+
|
|
43
|
+
- Update pdfkit to 0.14.0
|
|
44
|
+
- Update Roboto font (version 3.008)
|
|
45
|
+
|
|
46
|
+
## 0.3.0-beta.5 - 2023-02-19
|
|
47
|
+
|
|
48
|
+
- Fixed document buffer size. Node.js 18+ allow max 1 GiB.
|
|
49
|
+
|
|
50
|
+
## 0.3.0-beta.4 - 2022-12-17
|
|
51
|
+
|
|
52
|
+
- Minimal supported version Node.js 14 LTS
|
|
53
|
+
- Fixed theoretical vulnerability CVE-2022-46161 (**It was never part of version released as npm package or cdnjs or bower or packagist!**)
|
|
54
|
+
|
|
55
|
+
## 0.3.0-beta.3 - 2022-10-09
|
|
56
|
+
|
|
57
|
+
- Updated Roboto font (version 3.005)
|
|
58
|
+
- Fixed calculating auto page height
|
|
59
|
+
- Fixed TrueType Collection loading from URL
|
|
60
|
+
- Fixed refetching fonts from URL
|
|
61
|
+
|
|
62
|
+
## 0.3.0-beta.2 - 2022-04-01
|
|
63
|
+
|
|
64
|
+
- Attachments embedding
|
|
65
|
+
- Support passing headers to request for loading font files and images via URL adresses
|
|
66
|
+
|
|
67
|
+
## 0.3.0-beta.1 - 2022-01-01
|
|
4
68
|
|
|
5
69
|
- Port code base to ES6+
|
|
6
70
|
- Unify interface for node and browser **(breaking change)**
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -51,7 +51,9 @@ Check out [the playground](http://bpampuch.github.io/pdfmake/playground.html) an
|
|
|
51
51
|
|
|
52
52
|
## Documentation
|
|
53
53
|
|
|
54
|
-
Documentation URL: https://pdfmake.github.io/docs
|
|
54
|
+
**Documentation URL: https://pdfmake.github.io/docs/**
|
|
55
|
+
|
|
56
|
+
Source of documentation: https://github.com/pdfmake/docs **Improvements are welcome!**
|
|
55
57
|
|
|
56
58
|
## Building from sources
|
|
57
59
|
|