pdfmake 0.3.0-beta.17 → 0.3.0-beta.19

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +2 -7
  3. package/build/pdfmake.js +33324 -33106
  4. package/build/pdfmake.js.map +1 -1
  5. package/build/pdfmake.min.js +2 -2
  6. package/build/pdfmake.min.js.map +1 -1
  7. package/build/vfs_fonts.js +4 -4
  8. package/fonts/Roboto/Roboto-Italic.ttf +0 -0
  9. package/fonts/Roboto/Roboto-Medium.ttf +0 -0
  10. package/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
  11. package/fonts/Roboto/Roboto-Regular.ttf +0 -0
  12. package/js/DocMeasure.js +12 -1
  13. package/js/DocPreprocessor.js +21 -6
  14. package/js/DocumentContext.js +5 -4
  15. package/js/LayoutBuilder.js +137 -34
  16. package/js/OutputDocument.js +22 -34
  17. package/js/OutputDocumentServer.js +6 -11
  18. package/js/PageElementWriter.js +2 -2
  19. package/js/Printer.js +132 -145
  20. package/js/StyleContextStack.js +4 -0
  21. package/js/TextBreaker.js +30 -3
  22. package/js/URLResolver.js +23 -62
  23. package/js/browser-extensions/OutputDocumentBrowser.js +35 -72
  24. package/js/browser-extensions/index.js +2 -2
  25. package/package.json +18 -18
  26. package/src/DocMeasure.js +15 -1
  27. package/src/DocPreprocessor.js +25 -6
  28. package/src/DocumentContext.js +4 -4
  29. package/src/LayoutBuilder.js +169 -39
  30. package/src/OutputDocument.js +23 -37
  31. package/src/OutputDocumentServer.js +6 -11
  32. package/src/PageElementWriter.js +2 -2
  33. package/src/Printer.js +131 -143
  34. package/src/StyleContextStack.js +4 -0
  35. package/src/TextBreaker.js +23 -4
  36. package/src/URLResolver.js +23 -68
  37. package/src/browser-extensions/OutputDocumentBrowser.js +33 -71
  38. package/src/browser-extensions/index.js +2 -2
  39. package/js/browser-extensions/URLBrowserResolver.js +0 -81
  40. package/src/browser-extensions/URLBrowserResolver.js +0 -89
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.0-beta.19 - 2025-12-22
4
+
5
+ - Minimal supported version Node.js 20 LTS
6
+ - Added `wordBreak` property for `text` node, supported values: `'normal'` (default), `'break-all'`
7
+ - Used fetch API for downloading fonts and images
8
+ - Update Roboto font (version 3.014)
9
+ - Fixed render empty list entries
10
+
11
+ ## 0.3.0-beta.18 - 2025-05-09
12
+
13
+ - Added `section` node
14
+ - Fixed crash that occurred when using automatic page height
15
+ - Fixed text overflow with some non-wrappable texts
16
+
3
17
  ## 0.3.0-beta.17 - 2025-04-29
4
18
 
5
19
  - Fixed DoS via repeatedly redirect URL in file embedding
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # pdfmake [![Node.js CI][githubactions_img]][githubactions_url] [![GitHub][github_img]][github_url] [![npm][npm_img]][npm_url] [![Bower][bower_img]][bower_url] [![Packagist][packagist_img]][packagist_url] [![CDNJS][cdnjs_img]][cndjs_url]
1
+ # pdfmake [![Node.js CI][githubactions_img]][githubactions_url] [![GitHub][github_img]][github_url] [![npm][npm_img]][npm_url] [![CDNJS][cdnjs_img]][cndjs_url]
2
2
 
3
3
  [githubactions_img]: https://github.com/bpampuch/pdfmake/actions/workflows/node.js.yml/badge.svg?branch=master
4
4
  [githubactions_url]: https://github.com/bpampuch/pdfmake/actions
@@ -9,12 +9,6 @@
9
9
  [npm_img]: https://img.shields.io/npm/v/pdfmake.svg?colorB=0E7FBF
10
10
  [npm_url]: https://www.npmjs.com/package/pdfmake
11
11
 
12
- [bower_img]: https://img.shields.io/bower/v/pdfmake.svg?colorB=0E7FBF
13
- [bower_url]: https://github.com/bpampuch/pdfmake
14
-
15
- [packagist_img]: https://img.shields.io/packagist/v/bpampuch/pdfmake.svg?colorB=0E7FBF
16
- [packagist_url]: https://packagist.org/packages/bpampuch/pdfmake
17
-
18
12
  [cdnjs_img]: https://img.shields.io/cdnjs/v/pdfmake.svg?colorB=0E7FBF
19
13
  [cndjs_url]: https://cdnjs.com/libraries/pdfmake
20
14
 
@@ -42,6 +36,7 @@ Check out [the playground](http://bpampuch.github.io/pdfmake/playground.html) an
42
36
  * background-layer,
43
37
  * page dimensions and orientations,
44
38
  * margins,
39
+ * document sections,
45
40
  * custom page breaks,
46
41
  * font embedding,
47
42
  * support for complex, multi-level (nested) structures,