pdfmake 0.3.0-beta.1 → 0.3.0-beta.10

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 (76) hide show
  1. package/CHANGELOG.md +61 -1
  2. package/LICENSE +1 -1
  3. package/README.md +3 -1
  4. package/build/pdfmake.js +65039 -73250
  5. package/build/pdfmake.js.map +1 -1
  6. package/build/pdfmake.min.js +2 -2
  7. package/build/pdfmake.min.js.map +1 -1
  8. package/build/vfs_fonts.js +4 -4
  9. package/eslint.config.mjs +52 -0
  10. package/fonts/Roboto/Roboto-Italic.ttf +0 -0
  11. package/fonts/Roboto/Roboto-Medium.ttf +0 -0
  12. package/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
  13. package/fonts/Roboto/Roboto-Regular.ttf +0 -0
  14. package/js/3rd-party/svg-to-pdfkit/source.js +247 -922
  15. package/js/3rd-party/svg-to-pdfkit.js +2 -6
  16. package/js/DocMeasure.js +24 -148
  17. package/js/DocPreprocessor.js +8 -55
  18. package/js/DocumentContext.js +44 -62
  19. package/js/ElementWriter.js +38 -73
  20. package/js/LayoutBuilder.js +225 -177
  21. package/js/Line.js +7 -27
  22. package/js/OutputDocument.js +6 -16
  23. package/js/OutputDocumentServer.js +2 -9
  24. package/js/PDFDocument.js +24 -43
  25. package/js/PageElementWriter.js +12 -33
  26. package/js/PageSize.js +3 -17
  27. package/js/Printer.js +102 -49
  28. package/js/Renderer.js +37 -95
  29. package/js/SVGMeasure.js +3 -23
  30. package/js/StyleContextStack.js +13 -55
  31. package/js/TableProcessor.js +58 -124
  32. package/js/TextBreaker.js +4 -47
  33. package/js/TextDecorator.js +3 -41
  34. package/js/TextInlines.js +10 -52
  35. package/js/URLResolver.js +18 -24
  36. package/js/base.js +3 -20
  37. package/js/browser-extensions/OutputDocumentBrowser.js +7 -20
  38. package/js/browser-extensions/URLBrowserResolver.js +7 -20
  39. package/js/browser-extensions/fonts/Roboto.js +0 -4
  40. package/js/browser-extensions/index.js +2 -19
  41. package/js/browser-extensions/pdfMake.js +0 -14
  42. package/js/browser-extensions/standard-fonts/Courier.js +0 -4
  43. package/js/browser-extensions/standard-fonts/Helvetica.js +0 -4
  44. package/js/browser-extensions/standard-fonts/Symbol.js +0 -4
  45. package/js/browser-extensions/standard-fonts/Times.js +0 -4
  46. package/js/browser-extensions/standard-fonts/ZapfDingbats.js +0 -4
  47. package/js/columnCalculator.js +30 -24
  48. package/js/helpers/node.js +3 -27
  49. package/js/helpers/tools.js +0 -8
  50. package/js/helpers/variableType.js +15 -8
  51. package/js/index.js +0 -6
  52. package/js/qrEnc.js +133 -222
  53. package/js/standardPageSizes.js +2 -3
  54. package/js/tableLayouts.js +4 -33
  55. package/js/virtual-fs.js +4 -21
  56. package/package.json +25 -22
  57. package/src/DocMeasure.js +19 -6
  58. package/src/DocPreprocessor.js +6 -0
  59. package/src/DocumentContext.js +35 -20
  60. package/src/ElementWriter.js +41 -4
  61. package/src/LayoutBuilder.js +201 -18
  62. package/src/OutputDocument.js +1 -1
  63. package/src/PDFDocument.js +27 -1
  64. package/src/PageElementWriter.js +4 -0
  65. package/src/Printer.js +93 -7
  66. package/src/Renderer.js +35 -0
  67. package/src/StyleContextStack.js +3 -44
  68. package/src/TableProcessor.js +27 -5
  69. package/src/TextDecorator.js +1 -1
  70. package/src/URLResolver.js +16 -8
  71. package/src/browser-extensions/URLBrowserResolver.js +6 -3
  72. package/src/browser-extensions/index.js +1 -1
  73. package/src/browser-extensions/pdfMake.js +0 -14
  74. package/src/columnCalculator.js +24 -3
  75. package/src/helpers/variableType.js +11 -0
  76. package/src/qrEnc.js +5 -3
package/CHANGELOG.md CHANGED
@@ -1,6 +1,66 @@
1
1
  # Changelog
2
2
 
3
- 0.3.0-beta.1 - 2022-01-01
3
+ ## 0.3.0-beta.10 - 2024-09-22
4
+
5
+ - Drop support Internet Explorer 11 (Microsoft will not support from 2022)
6
+ - Minimal supported version Node.js 18 LTS
7
+ - Update Roboto font (version 3.010)
8
+ - Fixed page break in a column group
9
+ - Fixed saving margins in an unbreakable block
10
+ - Fixed fillColor items in unbreakable blocks
11
+ - Fixed calculating correctly the 'y' at the end of a rowSpan with dontBreakRows
12
+ - Fixed margins (top/bottom) of nodes and row height are considered for breaking page
13
+ - Fixed margins after page break
14
+ - Fixed margins of nodes with relativePosition or absolutePosition are ignored and don't interfere with the regular flow of the layout
15
+
16
+ ## 0.3.0-beta.9 - 2024-08-09
17
+
18
+ - Fixed and validates input values headerRows and keepWithHeaderRows
19
+ - Fixed numbering nested ordered lists
20
+ - Speed up StyleContextStack.autopush() for large tables
21
+ - Fixed widths of table columns with percentages
22
+ - Fixed storing the correct context in the ending cell of a row span when there were nested column groups (columns or tables)
23
+
24
+ ## 0.3.0-beta.8 - 2024-03-07
25
+
26
+ - Removed unused brfs dependency
27
+
28
+ ## 0.3.0-beta.7 - 2024-01-01
29
+
30
+ - Minimal supported version Node.js 16 LTS
31
+ - Added padding option for QR code
32
+ - Allow the document language to be specified
33
+ - Fixed cover image size inside table
34
+ - Fixed "Cannot read properties of undefined (reading 'bottomMost')" if table contains too few rows
35
+ - Fixed invalid source-maps in builded js file
36
+
37
+ ## 0.3.0-beta.6 - 2023-11-09
38
+
39
+ - Update pdfkit to 0.14.0
40
+ - Update Roboto font (version 3.008)
41
+
42
+ ## 0.3.0-beta.5 - 2023-02-19
43
+
44
+ - Fixed document buffer size. Node.js 18+ allow max 1 GiB.
45
+
46
+ ## 0.3.0-beta.4 - 2022-12-17
47
+
48
+ - Minimal supported version Node.js 14 LTS
49
+ - Fixed theoretical vulnerability CVE-2022-46161 (**It was never part of version released as npm package or cdnjs or bower or packagist!**)
50
+
51
+ ## 0.3.0-beta.3 - 2022-10-09
52
+
53
+ - Updated Roboto font (version 3.005)
54
+ - Fixed calculating auto page height
55
+ - Fixed TrueType Collection loading from URL
56
+ - Fixed refetching fonts from URL
57
+
58
+ ## 0.3.0-beta.2 - 2022-04-01
59
+
60
+ - Attachments embedding
61
+ - Support passing headers to request for loading font files and images via URL adresses
62
+
63
+ ## 0.3.0-beta.1 - 2022-01-01
4
64
 
5
65
  - Port code base to ES6+
6
66
  - Unify interface for node and browser **(breaking change)**
package/LICENSE CHANGED
@@ -1,7 +1,7 @@
1
1
  The MIT License (MIT)
2
2
 
3
3
  Copyright (c) 2014-2015 bpampuch
4
- 2016-2021 liborm85
4
+ 2016-2024 liborm85
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy of
7
7
  this software and associated documentation files (the "Software"), to deal in
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