@digicole/pdfmake-rtl 1.0.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/CHANGELOG.md +128 -0
- package/LICENSE +22 -0
- package/README.md +675 -0
- package/build/pdfmake.js +76236 -0
- package/build/pdfmake.js.map +1 -0
- package/build/pdfmake.min.js +3 -0
- package/build/pdfmake.min.js.map +1 -0
- package/build/vfs_fonts.js +8 -0
- package/build-vfs.js +44 -0
- package/index.html +927 -0
- package/index.js +26 -0
- package/package.json +124 -0
- package/src/3rd-party/svg-to-pdfkit/LICENSE +9 -0
- package/src/3rd-party/svg-to-pdfkit/source.js +2552 -0
- package/src/3rd-party/svg-to-pdfkit.js +3 -0
- package/src/browser-extensions/URLBrowserResolver.js +96 -0
- package/src/browser-extensions/pdfMake.js +355 -0
- package/src/browser-extensions/virtual-fs.js +55 -0
- package/src/columnCalculator.js +157 -0
- package/src/docMeasure.js +810 -0
- package/src/docPreprocessor.js +273 -0
- package/src/documentContext.js +340 -0
- package/src/elementWriter.js +411 -0
- package/src/fontProvider.js +68 -0
- package/src/helpers.js +138 -0
- package/src/imageMeasure.js +62 -0
- package/src/layoutBuilder.js +1197 -0
- package/src/line.js +104 -0
- package/src/pageElementWriter.js +174 -0
- package/src/pdfKitEngine.js +21 -0
- package/src/printer.js +727 -0
- package/src/qrEnc.js +791 -0
- package/src/rtlUtils.js +485 -0
- package/src/standardPageSizes.js +54 -0
- package/src/styleContextStack.js +138 -0
- package/src/svgMeasure.js +70 -0
- package/src/tableProcessor.js +606 -0
- package/src/textDecorator.js +157 -0
- package/src/textTools.js +391 -0
- package/src/traversalTracker.js +47 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.2.20 - 2025-05-09
|
|
4
|
+
|
|
5
|
+
- Fixed text overflow with some non-wrappable texts
|
|
6
|
+
|
|
7
|
+
## 0.2.19 - 2025-04-26
|
|
8
|
+
|
|
9
|
+
- Update Roboto font (version 3.011)
|
|
10
|
+
|
|
11
|
+
## 0.2.18 - 2025-01-01
|
|
12
|
+
|
|
13
|
+
- Update pdfkit
|
|
14
|
+
- Fixed a potential issue in the minimized library when detecting the orientation of JPEG images
|
|
15
|
+
|
|
16
|
+
## 0.2.17 - 2024-12-23
|
|
17
|
+
|
|
18
|
+
- Fixed big size pdfmake bundle for browser
|
|
19
|
+
|
|
20
|
+
## 0.2.16 - 2024-12-15
|
|
21
|
+
|
|
22
|
+
- Update pdfkit to 0.15.2
|
|
23
|
+
- Fixed aspect ratio for image with exif orientation tag
|
|
24
|
+
- Fixed font size calculation for watermark if is page orientation is changed
|
|
25
|
+
|
|
26
|
+
## 0.2.15 - 2024-11-02
|
|
27
|
+
|
|
28
|
+
- Added support PDF/A and PDF/UA (see [documentation](https://pdfmake.github.io/docs/0.1/document-definition-object/pdfa/))
|
|
29
|
+
- Changed Virtual file system (VFS) format for better compatibility with frameworks (backwards compatibility preserved). **For compatibility with frameworks, rebuild VFS required!**
|
|
30
|
+
- Browser: Added methods for fonts (`addFonts`, `setFonts`, `clearFonts`)
|
|
31
|
+
- Browser: Added methods for table layouts (`addTableLayouts`, `setTableLayouts`, `clearTableLayouts`)
|
|
32
|
+
- Added support `link`, `linkToPage` and `linkToDestination` for SVG
|
|
33
|
+
- Update pdfkit to 0.15.1
|
|
34
|
+
- Fixed bug with how page breaks provoked by cells with rowspan were handled
|
|
35
|
+
- Fixed find where previous cell started with row span and col span combination
|
|
36
|
+
- Fixed calculating correctly the 'y' at the end of a rowSpan with dontBreakRows
|
|
37
|
+
|
|
38
|
+
## 0.2.14 - 2024-10-09
|
|
39
|
+
|
|
40
|
+
- Fixed drawing top horizontal line of the table with page break
|
|
41
|
+
- Fixed uncaught Error when rowSpan and dontBreakRows combined
|
|
42
|
+
|
|
43
|
+
## 0.2.13 - 2024-09-22
|
|
44
|
+
|
|
45
|
+
- Minimal supported version Node.js 18 LTS
|
|
46
|
+
- Update Roboto font (version 3.010)
|
|
47
|
+
- Fixed page break in a column group
|
|
48
|
+
- Fixed saving margins in an unbreakable block
|
|
49
|
+
- Fixed fillColor items in unbreakable blocks
|
|
50
|
+
- Fixed calculating correctly the 'y' at the end of a rowSpan with dontBreakRows
|
|
51
|
+
- Fixed margins (top/bottom) of nodes and row height are considered for breaking page
|
|
52
|
+
- Fixed margins after page break
|
|
53
|
+
- Fixed margins of nodes with relativePosition or absolutePosition are ignored and don't interfere with the regular flow of the layout
|
|
54
|
+
|
|
55
|
+
## 0.2.12 - 2024-08-14
|
|
56
|
+
|
|
57
|
+
- Fixed error message of bad image definition
|
|
58
|
+
|
|
59
|
+
## 0.2.11 - 2024-08-09
|
|
60
|
+
|
|
61
|
+
- Fixed and validates input values headerRows and keepWithHeaderRows
|
|
62
|
+
- Fixed numbering nested ordered lists
|
|
63
|
+
- Speed up StyleContextStack.autopush() for large tables
|
|
64
|
+
- Fixed widths of table columns with percentages
|
|
65
|
+
- Fixed storing the correct context in the ending cell of a row span when there were nested column groups (columns or tables)
|
|
66
|
+
|
|
67
|
+
## 0.2.10 - 2024-03-07
|
|
68
|
+
|
|
69
|
+
- Removed unused brfs dependency
|
|
70
|
+
|
|
71
|
+
## 0.2.9 - 2024-01-01
|
|
72
|
+
|
|
73
|
+
- Added padding option for QR code
|
|
74
|
+
- Allow the document language to be specified
|
|
75
|
+
- Fixed cover image size inside table
|
|
76
|
+
- Fixed "Cannot read properties of undefined (reading 'bottomMost')" if table contains too few rows
|
|
77
|
+
- Fixed invalid source-maps in builded js file
|
|
78
|
+
|
|
79
|
+
## 0.2.8 - 2023-11-09
|
|
80
|
+
|
|
81
|
+
- Update pdfkit to 0.14.0
|
|
82
|
+
- Update Roboto font (version 3.008)
|
|
83
|
+
|
|
84
|
+
## 0.2.7 - 2022-12-17
|
|
85
|
+
|
|
86
|
+
- Fixed theoretical vulnerability CVE-2022-46161 (**It was never part of version released as npm package or cdnjs or bower or packagist!**)
|
|
87
|
+
|
|
88
|
+
## 0.2.6 - 2022-10-09
|
|
89
|
+
|
|
90
|
+
- Updated Roboto font (version 3.005)
|
|
91
|
+
- Fixed calculating auto page height
|
|
92
|
+
- Fixed TrueType Collection loading from URL
|
|
93
|
+
- Fixed refetching fonts from URL
|
|
94
|
+
|
|
95
|
+
## 0.2.5 - 2022-04-01
|
|
96
|
+
|
|
97
|
+
- Support passing headers to request for loading font files and images via URL adresses
|
|
98
|
+
|
|
99
|
+
## 0.2.4 - 2021-11-10
|
|
100
|
+
|
|
101
|
+
- Fixed destination path argument in VFS build script.
|
|
102
|
+
- Fixed error "Object.isExtensible is not a function" (bug is in core-js version 3.19.1).
|
|
103
|
+
|
|
104
|
+
## 0.2.3 - 2021-11-06
|
|
105
|
+
|
|
106
|
+
- Updated [@foliojs-fork/pdfkit](https://github.com/foliojs-fork/pdfkit) to version 0.13.0.
|
|
107
|
+
- Tiling pattern support.
|
|
108
|
+
- svg-to-pdfkit package moved as built-in. Solve not used installation of pdfkit.
|
|
109
|
+
- Fixed passing document metadata.
|
|
110
|
+
|
|
111
|
+
## 0.2.2 - 2021-08-02
|
|
112
|
+
|
|
113
|
+
- Fixed compatibility with Internet Explorer 11.
|
|
114
|
+
|
|
115
|
+
## 0.2.1 - 2021-08-02
|
|
116
|
+
|
|
117
|
+
- Upgrade Unicode Line Breaking Algorithm (UAX #14) to Unicode 13.0.0.
|
|
118
|
+
- Updated [@foliojs-fork/pdfkit](https://github.com/foliojs-fork/pdfkit) to version 0.12.3.
|
|
119
|
+
- Updated [@foliojs-fork/linebreak](https://github.com/foliojs-fork/linebreak) to version 1.11.1.
|
|
120
|
+
|
|
121
|
+
## 0.2.0 - 2021-07-05
|
|
122
|
+
|
|
123
|
+
- Move to [@foliojs-fork](https://github.com/foliojs-fork) packages with up-to-date dependecies and security bug fixes and others. These are the libraries [@foliojs-fork/fontkit](https://github.com/foliojs-fork/fontkit), [@foliojs-fork/restructure](https://github.com/foliojs-fork/restructure), [@foliojs-fork/linebreak](https://github.com/foliojs-fork/linebreak) which are used in [@foliojs-fork/pdfkit](https://github.com/foliojs-fork/pdfkit).
|
|
124
|
+
- Upgrade Unicode Line Breaking Algorithm (UAX #14) to Unicode 12.0.0
|
|
125
|
+
- Introduced new `build-vfs.js` script to build virtual file system for fonts (see [documentation](https://pdfmake.github.io/docs/0.1/fonts/custom-fonts-client-side/vfs/)).
|
|
126
|
+
- Removed support Node.js 8 and 10. Minimum required version is 12 LTS.
|
|
127
|
+
- Removed support Internet Explorer 10. Supported only Internet Explorer 11.
|
|
128
|
+
- Removed gulp.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-2015 bpampuch (original PDFMake)
|
|
4
|
+
2016-2025 liborm85 (PDFMake maintenance)
|
|
5
|
+
2025 PDFMake RTL Contributors (RTL extensions)
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
8
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
9
|
+
the Software without restriction, including without limitation the rights to
|
|
10
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
11
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
12
|
+
subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
19
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
20
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
21
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
22
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|