@flowaccount/pdfmake 0.2.20-staging.2
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/LICENSE +21 -0
- package/README.md +297 -0
- package/build/pdfmake.js +94091 -0
- package/build/pdfmake.min.js +3 -0
- package/build/pdfmake.min.js.map +1 -0
- package/build/vfs_fonts.js +7 -0
- package/package.json +110 -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 +361 -0
- package/src/browser-extensions/tokenizer-shim.js +16 -0
- package/src/browser-extensions/virtual-fs.js +55 -0
- package/src/columnCalculator.js +157 -0
- package/src/docMeasure.js +831 -0
- package/src/docPreprocessor.js +277 -0
- package/src/documentContext.js +383 -0
- package/src/elementWriter.js +434 -0
- package/src/fontProvider.js +68 -0
- package/src/helpers.js +138 -0
- package/src/imageMeasure.js +70 -0
- package/src/layoutBuilder.js +1537 -0
- package/src/line.js +91 -0
- package/src/pageElementWriter.js +355 -0
- package/src/pdfKitEngine.js +21 -0
- package/src/printer.js +1086 -0
- package/src/qrEnc.js +791 -0
- package/src/standardPageSizes.js +54 -0
- package/src/styleContextStack.js +138 -0
- package/src/svgMeasure.js +70 -0
- package/src/tableProcessor.js +648 -0
- package/src/textDecorator.js +157 -0
- package/src/textTools.js +543 -0
- package/src/traversalTracker.js +47 -0
package/package.json
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@flowaccount/pdfmake",
|
|
3
|
+
"version": "0.2.20-staging.2",
|
|
4
|
+
"description": "Client/server side PDF printing in pure JavaScript",
|
|
5
|
+
"main": "src/printer.js",
|
|
6
|
+
"browser": "build/pdfmake.js",
|
|
7
|
+
"directories": {
|
|
8
|
+
"test": "tests"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@flowaccount/node-icu-tokenizer": "2.0.0",
|
|
12
|
+
"@foliojs-fork/linebreak": "^1.1.2",
|
|
13
|
+
"@foliojs-fork/pdfkit": "^0.15.3",
|
|
14
|
+
"iconv-lite": "^0.6.3",
|
|
15
|
+
"lodash": "^4.17.15",
|
|
16
|
+
"xmldoc": "^2.0.1",
|
|
17
|
+
"pdfkit": "^0.8.3"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@babel/cli": "^7.27.2",
|
|
21
|
+
"@babel/core": "^7.27.1",
|
|
22
|
+
"@babel/plugin-transform-modules-commonjs": "^7.27.1",
|
|
23
|
+
"@babel/preset-env": "^7.27.2",
|
|
24
|
+
"@eslint/js": "^9.26.0",
|
|
25
|
+
"assert": "^2.1.0",
|
|
26
|
+
"babel-loader": "^10.0.0",
|
|
27
|
+
"brfs": "^2.0.2",
|
|
28
|
+
"browserify-zlib": "^0.2.0",
|
|
29
|
+
"buffer": "^6.0.3",
|
|
30
|
+
"core-js": "3.19.0",
|
|
31
|
+
"eslint": "^9.26.0",
|
|
32
|
+
"eslint-plugin-jsdoc": "^50.6.11",
|
|
33
|
+
"expose-loader": "^5.0.1",
|
|
34
|
+
"file-saver": "^2.0.5",
|
|
35
|
+
"globals": "^16.1.0",
|
|
36
|
+
"mocha": "^11.2.2",
|
|
37
|
+
"npm-run-all": "^4.1.5",
|
|
38
|
+
"path-browserify": "^1.0.1",
|
|
39
|
+
"process": "^0.11.10",
|
|
40
|
+
"rewire": "^7.0.0",
|
|
41
|
+
"shx": "^0.4.0",
|
|
42
|
+
"sinon": "^20.0.0",
|
|
43
|
+
"source-map-loader": "^5.0.0",
|
|
44
|
+
"stream-browserify": "^3.0.0",
|
|
45
|
+
"string-replace-webpack-plugin": "^0.1.3",
|
|
46
|
+
"svg-to-pdfkit": "^0.1.8",
|
|
47
|
+
"terser-webpack-plugin": "^5.3.14",
|
|
48
|
+
"transform-loader": "^0.2.4",
|
|
49
|
+
"util": "^0.12.5",
|
|
50
|
+
"webpack": "^5.99.8",
|
|
51
|
+
"webpack-cli": "^6.0.1"
|
|
52
|
+
},
|
|
53
|
+
"engines": {
|
|
54
|
+
"node": ">=18"
|
|
55
|
+
},
|
|
56
|
+
"scripts": {
|
|
57
|
+
"test": "run-s build mocha",
|
|
58
|
+
"build": "run-s build:3rdparty build:browser",
|
|
59
|
+
"build:3rdparty": "shx cp node_modules/svg-to-pdfkit/source.js src/3rd-party/svg-to-pdfkit/source.js && shx cp node_modules/svg-to-pdfkit/LICENSE src/3rd-party/svg-to-pdfkit/LICENSE",
|
|
60
|
+
"build:browser": "webpack",
|
|
61
|
+
"build:browser-standard-fonts": "webpack --config webpack-standardfonts.config.js",
|
|
62
|
+
"build:vfs": "node build-vfs.js \"./examples/fonts\"",
|
|
63
|
+
"build:examples": "node build-examples.js",
|
|
64
|
+
"lint": "eslint \"./src/**/*.js\" \"./tests/**/*.js\" \"./examples/**/*.js\"",
|
|
65
|
+
"mocha": "mocha --reporter spec --timeout 5000 \"./tests/**/*.js\"",
|
|
66
|
+
"playground": "node dev-playground/server.js",
|
|
67
|
+
"format": "prettier --write .",
|
|
68
|
+
"format:check": "prettier --check .",
|
|
69
|
+
"publish:local": "cp .npmrc.local .npmrc && npm version 0.2.20-local.$(date +%s) --no-git-tag-version && npm publish --registry=http://localhost:4872",
|
|
70
|
+
"publish:staging": "npm run build && npm run test && npm version prerelease --preid=staging --no-git-tag-version && npm publish --tag staging --access public",
|
|
71
|
+
"publish:production": "npm run build && npm run test && npm publish --access public",
|
|
72
|
+
"version:patch": "npm version patch",
|
|
73
|
+
"version:minor": "npm version minor",
|
|
74
|
+
"version:major": "npm version major"
|
|
75
|
+
},
|
|
76
|
+
"repository": {
|
|
77
|
+
"type": "git",
|
|
78
|
+
"url": "git://github.com/bpampuch/pdfmake.git"
|
|
79
|
+
},
|
|
80
|
+
"keywords": [
|
|
81
|
+
"pdf",
|
|
82
|
+
"javascript",
|
|
83
|
+
"printing",
|
|
84
|
+
"layout"
|
|
85
|
+
],
|
|
86
|
+
"author": "FlowAccount Co., Ltd. <voravit@flowaccount.com>",
|
|
87
|
+
"license": "MIT",
|
|
88
|
+
"bugs": {
|
|
89
|
+
"url": "https://github.com/bpampuch/pdfmake/issues"
|
|
90
|
+
},
|
|
91
|
+
"homepage": "http://pdfmake.org",
|
|
92
|
+
"config": {
|
|
93
|
+
"blanket": {
|
|
94
|
+
"pattern": "src",
|
|
95
|
+
"data-cover-never": [
|
|
96
|
+
"node_modules",
|
|
97
|
+
"tests"
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"files": [
|
|
102
|
+
"src/",
|
|
103
|
+
"build/pdfmake.js",
|
|
104
|
+
"build/pdfmake.min.js",
|
|
105
|
+
"build/pdfmake.min.js.map",
|
|
106
|
+
"build/vfs_fonts.js",
|
|
107
|
+
"README.md",
|
|
108
|
+
"LICENSE"
|
|
109
|
+
]
|
|
110
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 SVG-to-PDFKit contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|