@digicole/pdfmake-rtl 1.2.0 → 2.1.1
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/.vscode/tasks.json +17 -0
- package/CHANGELOG.md +83 -128
- package/LICENSE +22 -22
- package/README.md +188 -681
- package/build/fonts/Cairo/Cairo-Black.ttf +0 -0
- package/build/fonts/Cairo/Cairo-Bold.ttf +0 -0
- package/build/fonts/Cairo/Cairo-ExtraLight.ttf +0 -0
- package/build/fonts/Cairo/Cairo-Light.ttf +0 -0
- package/build/fonts/Cairo/Cairo-Regular.ttf +0 -0
- package/build/fonts/Cairo/Cairo-SemiBold.ttf +0 -0
- package/build/fonts/Cairo.js +27 -0
- package/build/fonts/Roboto/Roboto-Italic.ttf +0 -0
- package/build/fonts/Roboto/Roboto-Medium.ttf +0 -0
- package/build/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
- package/build/fonts/Roboto/Roboto-Regular.ttf +0 -0
- package/build/fonts/Roboto.js +27 -0
- package/build/pdfmake.js +63736 -71285
- package/build/pdfmake.js.map +1 -1
- package/build/pdfmake.min.js +2 -2
- package/build/pdfmake.min.js.map +1 -1
- package/build/standard-fonts/Courier.js +27 -0
- package/build/standard-fonts/Helvetica.js +27 -0
- package/build/standard-fonts/Symbol.js +21 -0
- package/build/standard-fonts/Times.js +27 -0
- package/build/standard-fonts/ZapfDingbats.js +21 -0
- package/build/vfs_fonts.js +11 -7
- package/build-vfs.js +44 -44
- package/fonts/Cairo/Cairo-Black.ttf +0 -0
- package/fonts/Cairo/Cairo-Bold.ttf +0 -0
- package/fonts/Cairo/Cairo-ExtraLight.ttf +0 -0
- package/fonts/Cairo/Cairo-Light.ttf +0 -0
- package/fonts/Cairo/Cairo-Regular.ttf +0 -0
- package/fonts/Cairo/Cairo-SemiBold.ttf +0 -0
- package/fonts/Cairo.js +8 -0
- package/fonts/Roboto/Roboto-Italic.ttf +0 -0
- package/fonts/Roboto/Roboto-Medium.ttf +0 -0
- package/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
- package/fonts/Roboto/Roboto-Regular.ttf +0 -0
- package/fonts/Roboto.js +8 -0
- package/index.js +26 -26
- package/package.json +42 -39
- package/src/3rd-party/svg-to-pdfkit/LICENSE +9 -9
- package/src/3rd-party/svg-to-pdfkit/source.js +229 -36
- package/src/3rd-party/svg-to-pdfkit.js +3 -3
- package/src/OutputDocument.js +64 -0
- package/src/OutputDocumentServer.js +32 -0
- package/src/PDFDocument.js +174 -0
- package/src/PageSize.js +53 -0
- package/src/Renderer.js +445 -0
- package/src/TextBreaker.js +168 -0
- package/src/TextInlines.js +263 -0
- package/src/URLResolver.js +43 -0
- package/src/base.js +70 -0
- package/src/browser-extensions/OutputDocumentBrowser.js +80 -0
- package/src/browser-extensions/fonts/Cairo.js +27 -0
- package/src/browser-extensions/fonts/Roboto.js +27 -0
- package/src/browser-extensions/index.js +61 -0
- package/src/browser-extensions/pdfMake.js +1 -355
- package/src/browser-extensions/standard-fonts/Courier.js +27 -0
- package/src/browser-extensions/standard-fonts/Helvetica.js +27 -0
- package/src/browser-extensions/standard-fonts/Symbol.js +21 -0
- package/src/browser-extensions/standard-fonts/Times.js +27 -0
- package/src/browser-extensions/standard-fonts/ZapfDingbats.js +21 -0
- package/src/browser-extensions/virtual-fs-cjs.js +1 -0
- package/src/columnCalculator.js +154 -157
- package/src/docMeasure.js +802 -810
- package/src/docPreprocessor.js +306 -273
- package/src/documentContext.js +345 -340
- package/src/elementWriter.js +736 -411
- package/src/helpers/node.js +136 -0
- package/src/helpers/tools.js +44 -0
- package/src/helpers/variableType.js +50 -0
- package/src/index.js +16 -0
- package/src/layoutBuilder.js +1393 -1197
- package/src/line.js +122 -104
- package/src/pageElementWriter.js +187 -174
- package/src/printer.js +370 -727
- package/src/qrEnc.js +796 -791
- package/src/rtlUtils.js +500 -485
- package/src/standardPageSizes.js +52 -54
- package/src/styleContextStack.js +208 -138
- package/src/svgMeasure.js +109 -70
- package/src/tableLayouts.js +100 -0
- package/src/tableProcessor.js +620 -606
- package/src/textDecorator.js +175 -157
- package/src/virtual-fs.js +66 -0
- package/standard-fonts/Courier.js +8 -0
- package/standard-fonts/Helvetica.js +8 -0
- package/standard-fonts/Symbol.js +5 -0
- package/standard-fonts/Times.js +8 -0
- package/standard-fonts/ZapfDingbats.js +5 -0
- package/index.html +0 -396
- package/src/browser-extensions/URLBrowserResolver.js +0 -96
- package/src/browser-extensions/virtual-fs.js +0 -55
- package/src/fontProvider.js +0 -68
- package/src/helpers.js +0 -138
- package/src/imageMeasure.js +0 -62
- package/src/pdfKitEngine.js +0 -21
- package/src/textTools.js +0 -391
- package/src/traversalTracker.js +0 -47
package/build-vfs.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
|
|
3
|
-
const vfsBefore = "var vfs = ";
|
|
4
|
-
const vfsAfter = "; var _global = typeof window === 'object' ? window : typeof global === 'object' ? global : typeof self === 'object' ? self : this; if (typeof _global.pdfMake !== 'undefined' && typeof _global.pdfMake.addVirtualFileSystem !== 'undefined') { _global.pdfMake.addVirtualFileSystem(vfs); } if (typeof module !== 'undefined') { module.exports = vfs; }";
|
|
5
|
-
const sourcePath = process.argv[2];
|
|
6
|
-
const vfsFilename = process.argv[3] ? process.argv[3] : './build/vfs_fonts.js';
|
|
7
|
-
|
|
8
|
-
var vfs = {};
|
|
9
|
-
|
|
10
|
-
if (sourcePath === undefined) {
|
|
11
|
-
console.error('Usage: node build-vfs.js path [filename]');
|
|
12
|
-
console.log('');
|
|
13
|
-
console.log('Parameters:');
|
|
14
|
-
console.log(' path Source path with fonts.');
|
|
15
|
-
console.log(' filename Optional. Output vfs file. Default: ./build/vfs_fonts.js');
|
|
16
|
-
console.log('');
|
|
17
|
-
console.log('Examples:');
|
|
18
|
-
console.log(' node build-vfs.js "examples/fonts"');
|
|
19
|
-
console.log(' node build-vfs.js "examples/fonts" "./build/vfs_fonts.js"');
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
if (!fs.existsSync(sourcePath)) {
|
|
24
|
-
console.error('Source path "' + sourcePath + '" not found.');
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
console.log('Source path:', sourcePath);
|
|
29
|
-
console.log('');
|
|
30
|
-
|
|
31
|
-
var files = fs.readdirSync(sourcePath);
|
|
32
|
-
|
|
33
|
-
files.forEach(function (file) {
|
|
34
|
-
var fileBase64 = fs.readFileSync(sourcePath + '/' + file).toString('base64');
|
|
35
|
-
console.log('FILE:', file);
|
|
36
|
-
|
|
37
|
-
vfs[file] = fileBase64;
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
const vfsFileContent = vfsBefore + JSON.stringify(vfs, null, 2) + vfsAfter;
|
|
41
|
-
fs.writeFileSync(vfsFilename, vfsFileContent);
|
|
42
|
-
|
|
43
|
-
console.log('');
|
|
44
|
-
console.log('
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
|
|
3
|
+
const vfsBefore = "var vfs = ";
|
|
4
|
+
const vfsAfter = "; var _global = typeof window === 'object' ? window : typeof global === 'object' ? global : typeof self === 'object' ? self : this; if (typeof _global.pdfMake !== 'undefined' && typeof _global.pdfMake.addVirtualFileSystem !== 'undefined') { _global.pdfMake.addVirtualFileSystem(vfs); } if (typeof module !== 'undefined') { module.exports = vfs; }";
|
|
5
|
+
const sourcePath = process.argv[2];
|
|
6
|
+
const vfsFilename = process.argv[3] ? process.argv[3] : './build/vfs_fonts.js';
|
|
7
|
+
|
|
8
|
+
var vfs = {};
|
|
9
|
+
|
|
10
|
+
if (sourcePath === undefined) {
|
|
11
|
+
console.error('Usage: node build-vfs.js path [filename]');
|
|
12
|
+
console.log('');
|
|
13
|
+
console.log('Parameters:');
|
|
14
|
+
console.log(' path Source path with fonts.');
|
|
15
|
+
console.log(' filename Optional. Output vfs file. Default: ./build/vfs_fonts.js');
|
|
16
|
+
console.log('');
|
|
17
|
+
console.log('Examples:');
|
|
18
|
+
console.log(' node build-vfs.js "examples/fonts"');
|
|
19
|
+
console.log(' node build-vfs.js "examples/fonts" "./build/vfs_fonts.js"');
|
|
20
|
+
process.exit(1);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if (!fs.existsSync(sourcePath)) {
|
|
24
|
+
console.error('Source path "' + sourcePath + '" not found.');
|
|
25
|
+
process.exit(1);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
console.log('Source path:', sourcePath);
|
|
29
|
+
console.log('');
|
|
30
|
+
|
|
31
|
+
var files = fs.readdirSync(sourcePath);
|
|
32
|
+
|
|
33
|
+
files.forEach(function (file) {
|
|
34
|
+
var fileBase64 = fs.readFileSync(sourcePath + '/' + file).toString('base64');
|
|
35
|
+
console.log('FILE:', file);
|
|
36
|
+
|
|
37
|
+
vfs[file] = fileBase64;
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
const vfsFileContent = vfsBefore + JSON.stringify(vfs, null, 2) + vfsAfter;
|
|
41
|
+
fs.writeFileSync(vfsFilename, vfsFileContent);
|
|
42
|
+
|
|
43
|
+
console.log('');
|
|
44
|
+
console.log('Built ' + files.length + ' files to ' + vfsFilename + '.');
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/fonts/Cairo.js
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/fonts/Roboto.js
ADDED
package/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PDFMake RTL - Enhanced PDFMake with automatic RTL support
|
|
3
|
-
*
|
|
4
|
-
* Supports Arabic, Persian (Farsi), and Urdu languages with automatic
|
|
5
|
-
* text direction detection and table column reversal.
|
|
6
|
-
*
|
|
7
|
-
* Main entry point for the package
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
'use strict';
|
|
11
|
-
|
|
12
|
-
// Export the main PdfPrinter class (same as PDFMake)
|
|
13
|
-
const PdfPrinter = require('./src/printer');
|
|
14
|
-
|
|
15
|
-
// Export RTL utilities for advanced usage
|
|
16
|
-
const RTLUtils = require('./src/rtlUtils');
|
|
17
|
-
|
|
18
|
-
// Export as default (CommonJS)
|
|
19
|
-
module.exports = PdfPrinter;
|
|
20
|
-
|
|
21
|
-
// Export utilities as named exports
|
|
22
|
-
module.exports.RTLUtils = RTLUtils;
|
|
23
|
-
module.exports.PdfPrinter = PdfPrinter;
|
|
24
|
-
|
|
25
|
-
// For ES6 imports compatibility
|
|
26
|
-
module.exports.default = PdfPrinter;
|
|
1
|
+
/**
|
|
2
|
+
* PDFMake RTL - Enhanced PDFMake with automatic RTL support
|
|
3
|
+
*
|
|
4
|
+
* Supports Arabic, Persian (Farsi), and Urdu languages with automatic
|
|
5
|
+
* text direction detection and table column reversal.
|
|
6
|
+
*
|
|
7
|
+
* Main entry point for the package
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
// Export the main PdfPrinter class (same as PDFMake)
|
|
13
|
+
const PdfPrinter = require('./src/printer');
|
|
14
|
+
|
|
15
|
+
// Export RTL utilities for advanced usage
|
|
16
|
+
const RTLUtils = require('./src/rtlUtils');
|
|
17
|
+
|
|
18
|
+
// Export as default (CommonJS)
|
|
19
|
+
module.exports = PdfPrinter;
|
|
20
|
+
|
|
21
|
+
// Export utilities as named exports
|
|
22
|
+
module.exports.RTLUtils = RTLUtils;
|
|
23
|
+
module.exports.PdfPrinter = PdfPrinter;
|
|
24
|
+
|
|
25
|
+
// For ES6 imports compatibility
|
|
26
|
+
module.exports.default = PdfPrinter;
|
package/package.json
CHANGED
|
@@ -1,67 +1,69 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digicole/pdfmake-rtl",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Enhanced PDFMake with
|
|
5
|
-
"main": "index.js",
|
|
3
|
+
"version": "2.1.1",
|
|
4
|
+
"description": "Enhanced PDFMake with comprehensive RTL (Arabic/Persian/Urdu) support - Production ready package",
|
|
5
|
+
"main": "js/index.js",
|
|
6
|
+
"esnext": "src/index.js",
|
|
6
7
|
"browser": "build/pdfmake.js",
|
|
7
8
|
"directories": {
|
|
8
|
-
"test": "tests"
|
|
9
|
-
"examples": "examples"
|
|
9
|
+
"test": "tests"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"xmldoc": "^2.0.
|
|
12
|
+
"express": "^5.2.1",
|
|
13
|
+
"linebreak": "^1.1.0",
|
|
14
|
+
"pdfkit": "^0.17.2",
|
|
15
|
+
"xmldoc": "^2.0.3"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@babel/cli": "^7.
|
|
19
|
-
"@babel/core": "^7.
|
|
20
|
-
"@babel/plugin-transform-modules-commonjs": "^7.
|
|
21
|
-
"@babel/preset-env": "^7.
|
|
22
|
-
"@eslint/js": "^9.
|
|
18
|
+
"@babel/cli": "^7.28.6",
|
|
19
|
+
"@babel/core": "^7.28.6",
|
|
20
|
+
"@babel/plugin-transform-modules-commonjs": "^7.28.6",
|
|
21
|
+
"@babel/preset-env": "^7.28.6",
|
|
22
|
+
"@eslint/js": "^9.39.2",
|
|
23
23
|
"assert": "^2.1.0",
|
|
24
24
|
"babel-loader": "^10.0.0",
|
|
25
25
|
"brfs": "^2.0.2",
|
|
26
26
|
"browserify-zlib": "^0.2.0",
|
|
27
27
|
"buffer": "^6.0.3",
|
|
28
|
-
"core-js": "3.
|
|
29
|
-
"eslint": "^9.
|
|
30
|
-
"eslint-plugin-jsdoc": "^
|
|
28
|
+
"core-js": "^3.47.0",
|
|
29
|
+
"eslint": "^9.39.2",
|
|
30
|
+
"eslint-plugin-jsdoc": "^62.1.0",
|
|
31
31
|
"expose-loader": "^5.0.1",
|
|
32
32
|
"file-saver": "^2.0.5",
|
|
33
|
-
"globals": "^
|
|
34
|
-
"mocha": "^11.
|
|
33
|
+
"globals": "^17.0.0",
|
|
34
|
+
"mocha": "^11.7.5",
|
|
35
35
|
"npm-run-all": "^4.1.5",
|
|
36
36
|
"process": "^0.11.10",
|
|
37
|
-
"rewire": "^
|
|
37
|
+
"rewire": "^9.0.1",
|
|
38
38
|
"shx": "^0.4.0",
|
|
39
|
-
"sinon": "^
|
|
39
|
+
"sinon": "^21.0.1",
|
|
40
40
|
"source-map-loader": "^5.0.0",
|
|
41
41
|
"stream-browserify": "^3.0.0",
|
|
42
42
|
"string-replace-webpack-plugin": "^0.1.3",
|
|
43
|
-
"svg-to-pdfkit": "
|
|
44
|
-
"terser-webpack-plugin": "^5.3.
|
|
43
|
+
"svg-to-pdfkit": "github:alafr/SVG-to-PDFKit#b091ebd4e7b7d2310eb1003511cd5de480f7e0e1",
|
|
44
|
+
"terser-webpack-plugin": "^5.3.16",
|
|
45
45
|
"transform-loader": "^0.2.4",
|
|
46
46
|
"util": "^0.12.5",
|
|
47
|
-
"webpack": "^5.
|
|
47
|
+
"webpack": "^5.104.1",
|
|
48
48
|
"webpack-cli": "^6.0.1"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
|
-
"node": ">=
|
|
51
|
+
"node": ">=20"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
|
-
"test": "run-s build mocha",
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"build": "
|
|
58
|
-
"build:
|
|
54
|
+
"test": "run-s build mocha lint",
|
|
55
|
+
"build": "run-s build:clean build:node build:browser build:standard-fonts build:fonts build:cairo build:vfs",
|
|
56
|
+
"build:clean": "shx rm -rf js build",
|
|
57
|
+
"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 && git apply src/3rd-party/svg-to-pdfkit/0001-fix-contains.patch",
|
|
58
|
+
"build:node": "babel src --out-dir js",
|
|
59
59
|
"build:browser": "webpack",
|
|
60
|
-
"build:browser-standard-fonts": "webpack --config webpack-standardfonts.config.js",
|
|
61
60
|
"build:vfs": "node build-vfs.js \"./examples/fonts\"",
|
|
62
61
|
"build:examples": "node build-examples.js",
|
|
63
|
-
"
|
|
64
|
-
"
|
|
62
|
+
"build:standard-fonts": "shx mkdir -p build/standard-fonts && brfs \"./src/browser-extensions/standard-fonts/Courier.js\" > build/standard-fonts/Courier.js && brfs \"./src/browser-extensions/standard-fonts/Helvetica.js\" > build/standard-fonts/Helvetica.js && brfs \"./src/browser-extensions/standard-fonts/Times.js\" > build/standard-fonts/Times.js && brfs \"./src/browser-extensions/standard-fonts/Symbol.js\" > build/standard-fonts/Symbol.js && brfs \"./src/browser-extensions/standard-fonts/ZapfDingbats.js\" > build/standard-fonts/ZapfDingbats.js",
|
|
63
|
+
"build:fonts": "shx mkdir -p build/fonts && shx mkdir -p build/fonts/Roboto && shx cp -r fonts/Roboto/*.* build/fonts/Roboto && brfs \"./src/browser-extensions/fonts/Roboto.js\" > build/fonts/Roboto.js",
|
|
64
|
+
"build:cairo": "shx mkdir -p build/fonts && shx mkdir -p build/fonts/Cairo && shx cp -r fonts/Cairo/*.* build/fonts/Cairo && brfs \"./src/browser-extensions/fonts/Cairo.js\" > build/fonts/Cairo.js",
|
|
65
|
+
"lint": "eslint \"./src/**/*.js\" \"./tests/**/*.js\" \"./examples/**/*.js\" \"./standard-fonts/**/*.js\" \"./fonts/**/*.js\"",
|
|
66
|
+
"mocha": "mocha --reporter spec \"./tests/**/*.spec.js\"",
|
|
65
67
|
"playground": "node dev-playground/server.js"
|
|
66
68
|
},
|
|
67
69
|
"repository": {
|
|
@@ -86,14 +88,15 @@
|
|
|
86
88
|
]
|
|
87
89
|
},
|
|
88
90
|
"keywords": [
|
|
91
|
+
"pdf-rtl",
|
|
89
92
|
"pdf",
|
|
90
93
|
"javascript",
|
|
91
94
|
"printing",
|
|
92
95
|
"layout",
|
|
93
96
|
"rtl",
|
|
94
97
|
"arabic",
|
|
95
|
-
"
|
|
96
|
-
"
|
|
98
|
+
"persian",
|
|
99
|
+
"urdu",
|
|
97
100
|
"right-to-left",
|
|
98
101
|
"bidirectional",
|
|
99
102
|
"i18n",
|
|
@@ -106,9 +109,9 @@
|
|
|
106
109
|
"author": "Aycer(based on original PDFMake by Bartek Pampuch)",
|
|
107
110
|
"contributors": [
|
|
108
111
|
{
|
|
109
|
-
"name": "
|
|
110
|
-
"email": "
|
|
111
|
-
"url": "https://github.com/
|
|
112
|
+
"name": "Aycer",
|
|
113
|
+
"email": "aysser21@gmail.com",
|
|
114
|
+
"url": "https://github.com/aysnet1"
|
|
112
115
|
}
|
|
113
116
|
],
|
|
114
117
|
"license": "MIT",
|
|
@@ -121,4 +124,4 @@
|
|
|
121
124
|
]
|
|
122
125
|
}
|
|
123
126
|
}
|
|
124
|
-
}
|
|
127
|
+
}
|
|
@@ -1,9 +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.
|
|
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.
|