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.
Files changed (77) hide show
  1. package/.idea/workspace.xml +20 -0
  2. package/CHANGELOG.md +65 -1
  3. package/LICENSE +1 -1
  4. package/README.md +3 -1
  5. package/build/pdfmake.js +65069 -73247
  6. package/build/pdfmake.js.map +1 -1
  7. package/build/pdfmake.min.js +2 -2
  8. package/build/pdfmake.min.js.map +1 -1
  9. package/build/vfs_fonts.js +4 -4
  10. package/eslint.config.mjs +52 -0
  11. package/fonts/Roboto/Roboto-Italic.ttf +0 -0
  12. package/fonts/Roboto/Roboto-Medium.ttf +0 -0
  13. package/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
  14. package/fonts/Roboto/Roboto-Regular.ttf +0 -0
  15. package/js/3rd-party/svg-to-pdfkit/source.js +247 -922
  16. package/js/3rd-party/svg-to-pdfkit.js +2 -6
  17. package/js/DocMeasure.js +24 -148
  18. package/js/DocPreprocessor.js +8 -55
  19. package/js/DocumentContext.js +44 -62
  20. package/js/ElementWriter.js +42 -74
  21. package/js/LayoutBuilder.js +225 -177
  22. package/js/Line.js +7 -27
  23. package/js/OutputDocument.js +6 -16
  24. package/js/OutputDocumentServer.js +2 -9
  25. package/js/PDFDocument.js +24 -43
  26. package/js/PageElementWriter.js +14 -35
  27. package/js/PageSize.js +3 -17
  28. package/js/Printer.js +102 -49
  29. package/js/Renderer.js +37 -95
  30. package/js/SVGMeasure.js +3 -23
  31. package/js/StyleContextStack.js +13 -55
  32. package/js/TableProcessor.js +94 -136
  33. package/js/TextBreaker.js +4 -47
  34. package/js/TextDecorator.js +3 -41
  35. package/js/TextInlines.js +10 -52
  36. package/js/URLResolver.js +18 -24
  37. package/js/base.js +3 -20
  38. package/js/browser-extensions/OutputDocumentBrowser.js +7 -20
  39. package/js/browser-extensions/URLBrowserResolver.js +7 -20
  40. package/js/browser-extensions/fonts/Roboto.js +0 -4
  41. package/js/browser-extensions/index.js +2 -19
  42. package/js/browser-extensions/pdfMake.js +0 -14
  43. package/js/browser-extensions/standard-fonts/Courier.js +0 -4
  44. package/js/browser-extensions/standard-fonts/Helvetica.js +0 -4
  45. package/js/browser-extensions/standard-fonts/Symbol.js +0 -4
  46. package/js/browser-extensions/standard-fonts/Times.js +0 -4
  47. package/js/browser-extensions/standard-fonts/ZapfDingbats.js +0 -4
  48. package/js/columnCalculator.js +30 -24
  49. package/js/helpers/node.js +3 -27
  50. package/js/helpers/tools.js +0 -8
  51. package/js/helpers/variableType.js +15 -8
  52. package/js/index.js +0 -6
  53. package/js/qrEnc.js +133 -222
  54. package/js/standardPageSizes.js +2 -3
  55. package/js/tableLayouts.js +4 -33
  56. package/js/virtual-fs.js +4 -21
  57. package/package.json +25 -22
  58. package/src/DocMeasure.js +19 -6
  59. package/src/DocPreprocessor.js +6 -0
  60. package/src/DocumentContext.js +35 -20
  61. package/src/ElementWriter.js +45 -5
  62. package/src/LayoutBuilder.js +201 -18
  63. package/src/OutputDocument.js +1 -1
  64. package/src/PDFDocument.js +27 -1
  65. package/src/PageElementWriter.js +6 -2
  66. package/src/Printer.js +93 -7
  67. package/src/Renderer.js +35 -0
  68. package/src/StyleContextStack.js +3 -44
  69. package/src/TableProcessor.js +64 -20
  70. package/src/TextDecorator.js +1 -1
  71. package/src/URLResolver.js +16 -8
  72. package/src/browser-extensions/URLBrowserResolver.js +6 -3
  73. package/src/browser-extensions/index.js +1 -1
  74. package/src/browser-extensions/pdfMake.js +0 -14
  75. package/src/columnCalculator.js +24 -3
  76. package/src/helpers/variableType.js +11 -0
  77. 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.1 - 2022-01-01
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
@@ -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