@arcships/light-ocr-darwin-x64 0.5.4 → 0.5.6
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/artifact-hashes.json +49 -9
- package/license-inventory.json +65 -1
- package/licenses/noto-sans-sc-OFL-1.1.txt +92 -0
- package/licenses/pdfium-native-MIT.txt +21 -0
- package/licenses/pdfium-native-THIRD-PARTY-NOTICES.md +47 -0
- package/native/light_ocr_node.node +0 -0
- package/native/runtime-descriptor.json +1 -1
- package/package.json +4 -2
- package/pdfium/fonts/NotoSansSC-Regular.otf +0 -0
- package/pdfium/fonts/OFL.txt +92 -0
- package/pdfium/index.cjs +34 -0
- package/pdfium/libpdfium.dylib +0 -0
- package/pdfium/pdfium.node +0 -0
- package/sbom.spdx.json +195 -1
package/artifact-hashes.json
CHANGED
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"sha256": "2eda9c7cf34ed06ac224bd8e3f8657bbefaec34f0f92ef1c5b00db84d1984869"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
"bytes":
|
|
19
|
+
"bytes": 2202,
|
|
20
20
|
"path": "license-inventory.json",
|
|
21
|
-
"sha256": "
|
|
21
|
+
"sha256": "70d69a619e754e6a5c206ba9252f8605e7e992e5ddc5712ab1efcd513b5b96c5"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"bytes": 1110,
|
|
@@ -30,6 +30,11 @@
|
|
|
30
30
|
"path": "licenses/nlohmann-json-MIT.txt",
|
|
31
31
|
"sha256": "86b998c792894ccb911a1cb7994f7a9652894e7a094c0b5e45be2f553f45cf14"
|
|
32
32
|
},
|
|
33
|
+
{
|
|
34
|
+
"bytes": 4301,
|
|
35
|
+
"path": "licenses/noto-sans-sc-OFL-1.1.txt",
|
|
36
|
+
"sha256": "6a73f9541c2de74158c0e7cf6b0a58ef774f5a780bf191f2d7ec9cc53efe2bf2"
|
|
37
|
+
},
|
|
33
38
|
{
|
|
34
39
|
"bytes": 1094,
|
|
35
40
|
"path": "licenses/onnxruntime-MIT.txt",
|
|
@@ -60,6 +65,16 @@
|
|
|
60
65
|
"path": "licenses/opencv-zlib.txt",
|
|
61
66
|
"sha256": "845efc77857d485d91fb3e0b884aaa929368c717ae8186b66fe1ed2495753243"
|
|
62
67
|
},
|
|
68
|
+
{
|
|
69
|
+
"bytes": 1064,
|
|
70
|
+
"path": "licenses/pdfium-native-MIT.txt",
|
|
71
|
+
"sha256": "e0d1cbc5ab7f2a71622dc703e52642ef7c7e81b4b4caa9e382da4a1a2eb45c62"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"bytes": 2879,
|
|
75
|
+
"path": "licenses/pdfium-native-THIRD-PARTY-NOTICES.md",
|
|
76
|
+
"sha256": "01c3f30c69061d39f0f0a4c575b75f48ec33c77e27d9f4c0f4d05ffe4db9cb99"
|
|
77
|
+
},
|
|
63
78
|
{
|
|
64
79
|
"bytes": 2510,
|
|
65
80
|
"path": "licenses/stb-MIT-or-Unlicense.txt",
|
|
@@ -73,25 +88,50 @@
|
|
|
73
88
|
{
|
|
74
89
|
"bytes": 7923448,
|
|
75
90
|
"path": "native/light_ocr_node.node",
|
|
76
|
-
"sha256": "
|
|
91
|
+
"sha256": "247e9080d4dc3408573f88527b78c258c756f5168db70dc9c1840661b708577a"
|
|
77
92
|
},
|
|
78
93
|
{
|
|
79
94
|
"bytes": 1133,
|
|
80
95
|
"path": "native/runtime-descriptor.json",
|
|
81
|
-
"sha256": "
|
|
96
|
+
"sha256": "888d9680ba2b0d014f1360434ffb46ba24a831b0b18ced89cf50bf0a6f54a5e5"
|
|
82
97
|
},
|
|
83
98
|
{
|
|
84
|
-
"bytes":
|
|
99
|
+
"bytes": 913,
|
|
85
100
|
"path": "package.json",
|
|
86
|
-
"sha256": "
|
|
101
|
+
"sha256": "216f80c654fb4f24d0a649dc16ddf929a15d91ad7ee4dd5a8d2da211fbc9870d"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"bytes": 8331336,
|
|
105
|
+
"path": "pdfium/fonts/NotoSansSC-Regular.otf",
|
|
106
|
+
"sha256": "faa6c9df652116dde789d351359f3d7e5d2285a2b2a1f04a2d7244df706d5ea9"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"bytes": 4301,
|
|
110
|
+
"path": "pdfium/fonts/OFL.txt",
|
|
111
|
+
"sha256": "6a73f9541c2de74158c0e7cf6b0a58ef774f5a780bf191f2d7ec9cc53efe2bf2"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"bytes": 987,
|
|
115
|
+
"path": "pdfium/index.cjs",
|
|
116
|
+
"sha256": "02c7c82adf6fc50f0f4bef2de20b5c2081e00e078536b92d6286c696a3a00f97"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"bytes": 7473800,
|
|
120
|
+
"path": "pdfium/libpdfium.dylib",
|
|
121
|
+
"sha256": "08ced095278c82f4576fa62788fb65a9ada035893c6940aca12220c8aafee906"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"bytes": 249392,
|
|
125
|
+
"path": "pdfium/pdfium.node",
|
|
126
|
+
"sha256": "c418835599ea13bf2759f75b9e85ad8f5318d6d5596050c8c466b148aa9cfd8c"
|
|
87
127
|
},
|
|
88
128
|
{
|
|
89
|
-
"bytes":
|
|
129
|
+
"bytes": 6634,
|
|
90
130
|
"path": "sbom.spdx.json",
|
|
91
|
-
"sha256": "
|
|
131
|
+
"sha256": "3e2ba8b68a0ca77c6ec51a7827e2b4fb6a9a3cb4aa4eb34f8f821c24378e3fc9"
|
|
92
132
|
}
|
|
93
133
|
],
|
|
94
134
|
"package": "@arcships/light-ocr-darwin-x64",
|
|
95
135
|
"schemaVersion": "1.0",
|
|
96
|
-
"version": "0.5.
|
|
136
|
+
"version": "0.5.6"
|
|
97
137
|
}
|
package/license-inventory.json
CHANGED
|
@@ -1 +1,65 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"files": [
|
|
3
|
+
{
|
|
4
|
+
"component": "opencv",
|
|
5
|
+
"file": "licenses/opencv-Apache-2.0.txt",
|
|
6
|
+
"sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"component": "opencv",
|
|
10
|
+
"file": "licenses/opencv-COPYRIGHT.txt",
|
|
11
|
+
"sha256": "bba849c98da85a2b27b86113284a90812c959b1c1fc4ed67de9355475d1e6831"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"component": "zlib",
|
|
15
|
+
"file": "licenses/opencv-zlib.txt",
|
|
16
|
+
"sha256": "845efc77857d485d91fb3e0b884aaa929368c717ae8186b66fe1ed2495753243"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"component": "clipper",
|
|
20
|
+
"file": "licenses/clipper-BSL-1.0.txt",
|
|
21
|
+
"sha256": "32ee7398e3123736fd14e9f08287edc2d97ace102ab54d8dc4edc8d31c651fa8"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"component": "nlohmann-json",
|
|
25
|
+
"file": "licenses/nlohmann-json-MIT.txt",
|
|
26
|
+
"sha256": "86b998c792894ccb911a1cb7994f7a9652894e7a094c0b5e45be2f553f45cf14"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"component": "onnxruntime",
|
|
30
|
+
"file": "licenses/onnxruntime-MIT.txt",
|
|
31
|
+
"sha256": "c250d6278f0b47a6439fb7592b08b58a55eb9f535aa49a1db63211c3f982b674"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"component": "onnxruntime",
|
|
35
|
+
"file": "licenses/onnxruntime-ThirdPartyNotices.txt",
|
|
36
|
+
"sha256": "e00f828e0a33de591a355ae6606d2625f5758da7d2c844db7821c9dd3e3647b6"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"component": "stb",
|
|
40
|
+
"file": "licenses/stb-MIT-or-Unlicense.txt",
|
|
41
|
+
"sha256": "bebfe904b14301657e4e5d655c811d51fd31b97c455b9cc2d8600d6bac6cff63"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"component": "carotene",
|
|
45
|
+
"file": "licenses/opencv-carotene-BSD-3-Clause.txt",
|
|
46
|
+
"sha256": "fb86be28d90bfef2fffcb86469f7c19962b7a367da9676a521cc1fc33f2996fc"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"component": "pdfium-native-0.6.1",
|
|
50
|
+
"file": "licenses/pdfium-native-MIT.txt",
|
|
51
|
+
"sha256": "e0d1cbc5ab7f2a71622dc703e52642ef7c7e81b4b4caa9e382da4a1a2eb45c62"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"component": "pdfium-native-0.6.1",
|
|
55
|
+
"file": "licenses/pdfium-native-THIRD-PARTY-NOTICES.md",
|
|
56
|
+
"sha256": "01c3f30c69061d39f0f0a4c575b75f48ec33c77e27d9f4c0f4d05ffe4db9cb99"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"component": "noto-sans-sc",
|
|
60
|
+
"file": "licenses/noto-sans-sc-OFL-1.1.txt",
|
|
61
|
+
"sha256": "6a73f9541c2de74158c0e7cf6b0a58ef774f5a780bf191f2d7ec9cc53efe2bf2"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"schemaVersion": "1.0"
|
|
65
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
This Font Software is licensed under the SIL Open Font License,
|
|
2
|
+
Version 1.1.
|
|
3
|
+
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
-----------------------------------------------------------
|
|
8
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
9
|
+
-----------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
PREAMBLE
|
|
12
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
13
|
+
development of collaborative font projects, to support the font
|
|
14
|
+
creation efforts of academic and linguistic communities, and to
|
|
15
|
+
provide a free and open framework in which fonts may be shared and
|
|
16
|
+
improved in partnership with others.
|
|
17
|
+
|
|
18
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
19
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
20
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
21
|
+
redistributed and/or sold with any software provided that any reserved
|
|
22
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
23
|
+
however, cannot be released under any other type of license. The
|
|
24
|
+
requirement for fonts to remain under this license does not apply to
|
|
25
|
+
any document created using the fonts or their derivatives.
|
|
26
|
+
|
|
27
|
+
DEFINITIONS
|
|
28
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
29
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
30
|
+
include source files, build scripts and documentation.
|
|
31
|
+
|
|
32
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
33
|
+
copyright statement(s).
|
|
34
|
+
|
|
35
|
+
"Original Version" refers to the collection of Font Software
|
|
36
|
+
components as distributed by the Copyright Holder(s).
|
|
37
|
+
|
|
38
|
+
"Modified Version" refers to any derivative made by adding to,
|
|
39
|
+
deleting, or substituting -- in part or in whole -- any of the
|
|
40
|
+
components of the Original Version, by changing formats or by porting
|
|
41
|
+
the Font Software to a new environment.
|
|
42
|
+
|
|
43
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
44
|
+
writer or other person who contributed to the Font Software.
|
|
45
|
+
|
|
46
|
+
PERMISSION & CONDITIONS
|
|
47
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
48
|
+
a copy of the Font Software, to use, study, copy, merge, embed,
|
|
49
|
+
modify, redistribute, and sell modified and unmodified copies of the
|
|
50
|
+
Font Software, subject to the following conditions:
|
|
51
|
+
|
|
52
|
+
1) Neither the Font Software nor any of its individual components, in
|
|
53
|
+
Original or Modified Versions, may be sold by itself.
|
|
54
|
+
|
|
55
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
56
|
+
redistributed and/or sold with any software, provided that each copy
|
|
57
|
+
contains the above copyright notice and this license. These can be
|
|
58
|
+
included either as stand-alone text files, human-readable headers or
|
|
59
|
+
in the appropriate machine-readable metadata fields within text or
|
|
60
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
61
|
+
|
|
62
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
63
|
+
Name(s) unless explicit written permission is granted by the
|
|
64
|
+
corresponding Copyright Holder. This restriction only applies to the
|
|
65
|
+
primary font name as presented to the users.
|
|
66
|
+
|
|
67
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
68
|
+
Software shall not be used to promote, endorse or advertise any
|
|
69
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
70
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
71
|
+
permission.
|
|
72
|
+
|
|
73
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
74
|
+
must be distributed entirely under this license, and must not be
|
|
75
|
+
distributed under any other license. The requirement for fonts to
|
|
76
|
+
remain under this license does not apply to any document created using
|
|
77
|
+
the Font Software.
|
|
78
|
+
|
|
79
|
+
TERMINATION
|
|
80
|
+
This license becomes null and void if any of the above conditions are
|
|
81
|
+
not met.
|
|
82
|
+
|
|
83
|
+
DISCLAIMER
|
|
84
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
85
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
86
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
87
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
88
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
89
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
90
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
91
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
92
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 xonaman
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Third-Party Notices
|
|
2
|
+
|
|
3
|
+
`pdfium-native` is distributed under the [MIT License](./LICENSE). It bundles
|
|
4
|
+
and/or links against the third-party native components listed below. Each
|
|
5
|
+
component remains under its own license; the relevant license texts are shipped
|
|
6
|
+
inside the prebuilt PDFium distribution under `deps/pdfium/licenses/`.
|
|
7
|
+
|
|
8
|
+
## Bundled native libraries
|
|
9
|
+
|
|
10
|
+
| Component | Version | License |
|
|
11
|
+
| -------------------------------------------------- | --------------- | --------------------------------------- |
|
|
12
|
+
| [PDFium](https://pdfium.googlesource.com/pdfium/) | `chromium/7749` | BSD-3-Clause |
|
|
13
|
+
| [stb_image_write](https://github.com/nothings/stb) | `v1.16` | Public Domain (Unlicense) or MIT (dual) |
|
|
14
|
+
|
|
15
|
+
- **PDFium** — the PDF rendering and parsing engine, consumed as a prebuilt
|
|
16
|
+
shared library from
|
|
17
|
+
[bblanchon/pdfium-binaries](https://github.com/bblanchon/pdfium-binaries).
|
|
18
|
+
Copyright The PDFium Authors. Licensed under BSD-3-Clause.
|
|
19
|
+
- **stb_image_write** — single-header PNG/JPEG encoder vendored in
|
|
20
|
+
`src/stb_image_write.{h,cc}`, used to encode rendered bitmaps. By Sean Barrett
|
|
21
|
+
(and based on Jon Olick's public-domain JPEG writer). Dual-licensed: you may
|
|
22
|
+
use it under the MIT License or as public domain (Unlicense).
|
|
23
|
+
|
|
24
|
+
## Components statically linked into the prebuilt PDFium library
|
|
25
|
+
|
|
26
|
+
The prebuilt PDFium shared library statically incorporates the third-party
|
|
27
|
+
components below. Their versions track the upstream PDFium `chromium/7749`
|
|
28
|
+
build; full license texts are provided in `deps/pdfium/licenses/`.
|
|
29
|
+
|
|
30
|
+
| Component | License |
|
|
31
|
+
| ------------------------- | ----------------------------------------- |
|
|
32
|
+
| Abseil | Apache-2.0 |
|
|
33
|
+
| Anti-Grain Geometry (2.3) | Anti-Grain Geometry License (permissive) |
|
|
34
|
+
| fast_float | MIT (also Apache-2.0 / BSL-1.0) |
|
|
35
|
+
| FreeType | FreeType License (FTL) or GPLv2 |
|
|
36
|
+
| ICU | Unicode License v3 |
|
|
37
|
+
| Little CMS (lcms2) | MIT |
|
|
38
|
+
| libjpeg-turbo | BSD-3-Clause and IJG License |
|
|
39
|
+
| OpenJPEG | BSD-2-Clause |
|
|
40
|
+
| libpng | libpng License (PNG Reference Library v2) |
|
|
41
|
+
| libtiff | libtiff License (MIT/BSD-style) |
|
|
42
|
+
| LLVM libc | Apache-2.0 with LLVM Exceptions |
|
|
43
|
+
| simdutf | MIT (also Apache-2.0) |
|
|
44
|
+
| zlib (1.3.1) | zlib License |
|
|
45
|
+
|
|
46
|
+
If you redistribute `pdfium-native` (or its prebuilt binaries), you must retain
|
|
47
|
+
the above notices and the corresponding license texts.
|
|
Binary file
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"addon": {
|
|
3
3
|
"bytes": 7923448,
|
|
4
4
|
"path": "native/light_ocr_node.node",
|
|
5
|
-
"sha256": "
|
|
5
|
+
"sha256": "247e9080d4dc3408573f88527b78c258c756f5168db70dc9c1840661b708577a"
|
|
6
6
|
},
|
|
7
7
|
"autoPolicy": {
|
|
8
8
|
"id": "macos-x64-v1",
|
package/package.json
CHANGED
|
@@ -10,10 +10,12 @@
|
|
|
10
10
|
"node": "^22.0.0 || ^24.0.0"
|
|
11
11
|
},
|
|
12
12
|
"exports": {
|
|
13
|
-
".": "./native/light_ocr_node.node"
|
|
13
|
+
".": "./native/light_ocr_node.node",
|
|
14
|
+
"./pdfium": "./pdfium/index.cjs"
|
|
14
15
|
},
|
|
15
16
|
"files": [
|
|
16
17
|
"native/",
|
|
18
|
+
"pdfium/",
|
|
17
19
|
"licenses/",
|
|
18
20
|
"license-inventory.json",
|
|
19
21
|
"sbom.spdx.json",
|
|
@@ -37,5 +39,5 @@
|
|
|
37
39
|
"type": "git",
|
|
38
40
|
"url": "git+https://github.com/arcships/light-ocr.git"
|
|
39
41
|
},
|
|
40
|
-
"version": "0.5.
|
|
42
|
+
"version": "0.5.6"
|
|
41
43
|
}
|
|
Binary file
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
This Font Software is licensed under the SIL Open Font License,
|
|
2
|
+
Version 1.1.
|
|
3
|
+
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
-----------------------------------------------------------
|
|
8
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
9
|
+
-----------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
PREAMBLE
|
|
12
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
13
|
+
development of collaborative font projects, to support the font
|
|
14
|
+
creation efforts of academic and linguistic communities, and to
|
|
15
|
+
provide a free and open framework in which fonts may be shared and
|
|
16
|
+
improved in partnership with others.
|
|
17
|
+
|
|
18
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
19
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
20
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
21
|
+
redistributed and/or sold with any software provided that any reserved
|
|
22
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
23
|
+
however, cannot be released under any other type of license. The
|
|
24
|
+
requirement for fonts to remain under this license does not apply to
|
|
25
|
+
any document created using the fonts or their derivatives.
|
|
26
|
+
|
|
27
|
+
DEFINITIONS
|
|
28
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
29
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
30
|
+
include source files, build scripts and documentation.
|
|
31
|
+
|
|
32
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
33
|
+
copyright statement(s).
|
|
34
|
+
|
|
35
|
+
"Original Version" refers to the collection of Font Software
|
|
36
|
+
components as distributed by the Copyright Holder(s).
|
|
37
|
+
|
|
38
|
+
"Modified Version" refers to any derivative made by adding to,
|
|
39
|
+
deleting, or substituting -- in part or in whole -- any of the
|
|
40
|
+
components of the Original Version, by changing formats or by porting
|
|
41
|
+
the Font Software to a new environment.
|
|
42
|
+
|
|
43
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
44
|
+
writer or other person who contributed to the Font Software.
|
|
45
|
+
|
|
46
|
+
PERMISSION & CONDITIONS
|
|
47
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
48
|
+
a copy of the Font Software, to use, study, copy, merge, embed,
|
|
49
|
+
modify, redistribute, and sell modified and unmodified copies of the
|
|
50
|
+
Font Software, subject to the following conditions:
|
|
51
|
+
|
|
52
|
+
1) Neither the Font Software nor any of its individual components, in
|
|
53
|
+
Original or Modified Versions, may be sold by itself.
|
|
54
|
+
|
|
55
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
56
|
+
redistributed and/or sold with any software, provided that each copy
|
|
57
|
+
contains the above copyright notice and this license. These can be
|
|
58
|
+
included either as stand-alone text files, human-readable headers or
|
|
59
|
+
in the appropriate machine-readable metadata fields within text or
|
|
60
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
61
|
+
|
|
62
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
63
|
+
Name(s) unless explicit written permission is granted by the
|
|
64
|
+
corresponding Copyright Holder. This restriction only applies to the
|
|
65
|
+
primary font name as presented to the users.
|
|
66
|
+
|
|
67
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
68
|
+
Software shall not be used to promote, endorse or advertise any
|
|
69
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
70
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
71
|
+
permission.
|
|
72
|
+
|
|
73
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
74
|
+
must be distributed entirely under this license, and must not be
|
|
75
|
+
distributed under any other license. The requirement for fonts to
|
|
76
|
+
remain under this license does not apply to any document created using
|
|
77
|
+
the Font Software.
|
|
78
|
+
|
|
79
|
+
TERMINATION
|
|
80
|
+
This license becomes null and void if any of the above conditions are
|
|
81
|
+
not met.
|
|
82
|
+
|
|
83
|
+
DISCLAIMER
|
|
84
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
85
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
86
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
87
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
88
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
89
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
90
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
91
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
92
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
package/pdfium/index.cjs
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const fs = require('node:fs');
|
|
4
|
+
const path = require('node:path');
|
|
5
|
+
|
|
6
|
+
const addonDirectory = __dirname;
|
|
7
|
+
const fontDirectory = path.join(addonDirectory, 'fonts');
|
|
8
|
+
const fallbackFont = path.join(fontDirectory, 'NotoSansSC-Regular.otf');
|
|
9
|
+
if (!fs.existsSync(fallbackFont)) {
|
|
10
|
+
throw new Error(`Bundled PDF fallback font is missing: ${fallbackFont}`);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
if (process.platform === 'win32') {
|
|
14
|
+
process.env.PATH = `${addonDirectory};${process.env.PATH ?? ''}`;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const previousFontDirectory = process.env.LIGHT_OCR_PDFIUM_FONT_DIR;
|
|
18
|
+
process.env.LIGHT_OCR_PDFIUM_FONT_DIR = fontDirectory;
|
|
19
|
+
let addon;
|
|
20
|
+
try {
|
|
21
|
+
addon = require(path.join(addonDirectory, 'pdfium.node'));
|
|
22
|
+
} finally {
|
|
23
|
+
if (previousFontDirectory === undefined) {
|
|
24
|
+
delete process.env.LIGHT_OCR_PDFIUM_FONT_DIR;
|
|
25
|
+
} else {
|
|
26
|
+
process.env.LIGHT_OCR_PDFIUM_FONT_DIR = previousFontDirectory;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
module.exports = Object.freeze({
|
|
31
|
+
loadDocument(input, password) {
|
|
32
|
+
return addon.loadDocument(input, password);
|
|
33
|
+
},
|
|
34
|
+
});
|
|
Binary file
|
|
Binary file
|
package/sbom.spdx.json
CHANGED
|
@@ -1 +1,195 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"SPDXID": "SPDXRef-DOCUMENT",
|
|
3
|
+
"creationInfo": {
|
|
4
|
+
"created": "2026-07-31T02:34:41Z",
|
|
5
|
+
"creators": [
|
|
6
|
+
"Tool: light-ocr-generate-release-metadata/1.0"
|
|
7
|
+
]
|
|
8
|
+
},
|
|
9
|
+
"dataLicense": "CC0-1.0",
|
|
10
|
+
"documentDescribes": [
|
|
11
|
+
"SPDXRef-Package-light-ocr-core"
|
|
12
|
+
],
|
|
13
|
+
"documentNamespace": "https://light-ocr.invalid/spdx/de2fd184960cfed20cc3eff03268d552908e4aff8686e4c48ec3ee1a5df1b244",
|
|
14
|
+
"name": "light-ocr-core-macos-x64",
|
|
15
|
+
"packages": [
|
|
16
|
+
{
|
|
17
|
+
"SPDXID": "SPDXRef-Package-light-ocr-core",
|
|
18
|
+
"copyrightText": "Copyright 2026 light-ocr contributors",
|
|
19
|
+
"downloadLocation": "NOASSERTION",
|
|
20
|
+
"filesAnalyzed": false,
|
|
21
|
+
"licenseConcluded": "Apache-2.0",
|
|
22
|
+
"licenseDeclared": "Apache-2.0",
|
|
23
|
+
"name": "light-ocr-core",
|
|
24
|
+
"versionInfo": "0.1.0"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"SPDXID": "SPDXRef-Package-onnxruntime",
|
|
28
|
+
"checksums": [
|
|
29
|
+
{
|
|
30
|
+
"algorithm": "SHA256",
|
|
31
|
+
"checksumValue": "d571e63a2329baacb713f441e65ad75284de354db6e1ac435fe4bebbb417986a"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"copyrightText": "NOASSERTION",
|
|
35
|
+
"downloadLocation": "https://api.nuget.org/v3-flatcontainer/microsoft.ml.onnxruntime/1.22.0/microsoft.ml.onnxruntime.1.22.0.nupkg",
|
|
36
|
+
"filesAnalyzed": false,
|
|
37
|
+
"licenseConcluded": "MIT",
|
|
38
|
+
"licenseDeclared": "MIT",
|
|
39
|
+
"name": "onnxruntime",
|
|
40
|
+
"versionInfo": "1.22.0"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"SPDXID": "SPDXRef-Package-opencv",
|
|
44
|
+
"checksums": [
|
|
45
|
+
{
|
|
46
|
+
"algorithm": "SHA256",
|
|
47
|
+
"checksumValue": "b2171af5be6b26f7a06b1229948bbb2bdaa74fcf5cd097e0af6378fce50a6eb9"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"copyrightText": "NOASSERTION",
|
|
51
|
+
"downloadLocation": "https://codeload.github.com/opencv/opencv/tar.gz/refs/tags/4.10.0",
|
|
52
|
+
"filesAnalyzed": false,
|
|
53
|
+
"licenseConcluded": "Apache-2.0",
|
|
54
|
+
"licenseDeclared": "Apache-2.0",
|
|
55
|
+
"name": "opencv",
|
|
56
|
+
"versionInfo": "4.10.0"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"SPDXID": "SPDXRef-Package-opencv-zlib",
|
|
60
|
+
"copyrightText": "NOASSERTION",
|
|
61
|
+
"downloadLocation": "https://codeload.github.com/opencv/opencv/tar.gz/refs/tags/4.10.0",
|
|
62
|
+
"filesAnalyzed": false,
|
|
63
|
+
"licenseConcluded": "Zlib",
|
|
64
|
+
"licenseDeclared": "Zlib",
|
|
65
|
+
"name": "zlib",
|
|
66
|
+
"versionInfo": "1.3.1"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"SPDXID": "SPDXRef-Package-opencv-carotene",
|
|
70
|
+
"copyrightText": "NOASSERTION",
|
|
71
|
+
"downloadLocation": "https://codeload.github.com/opencv/opencv/tar.gz/refs/tags/4.10.0",
|
|
72
|
+
"filesAnalyzed": false,
|
|
73
|
+
"licenseConcluded": "BSD-3-Clause",
|
|
74
|
+
"licenseDeclared": "BSD-3-Clause",
|
|
75
|
+
"name": "carotene",
|
|
76
|
+
"versionInfo": "0.0.1"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"SPDXID": "SPDXRef-Package-clipper",
|
|
80
|
+
"checksums": [
|
|
81
|
+
{
|
|
82
|
+
"algorithm": "SHA256",
|
|
83
|
+
"checksumValue": "2be14496a1609fa8602d9d3672c83ee95d5ef44a08b765a60e65b93a68882ff6"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"copyrightText": "NOASSERTION",
|
|
87
|
+
"downloadLocation": "https://codeload.github.com/fonttools/pyclipper/tar.gz/refs/tags/1.3.0.post6",
|
|
88
|
+
"filesAnalyzed": false,
|
|
89
|
+
"licenseConcluded": "BSL-1.0",
|
|
90
|
+
"licenseDeclared": "BSL-1.0",
|
|
91
|
+
"name": "clipper",
|
|
92
|
+
"versionInfo": "6.4.2-pyclipper-1.3.0.post6"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"SPDXID": "SPDXRef-Package-stb",
|
|
96
|
+
"checksums": [
|
|
97
|
+
{
|
|
98
|
+
"algorithm": "SHA256",
|
|
99
|
+
"checksumValue": "e4e3bba9c572a4a4148373a914d88ea0f0d11de8cc2c66739926e7eca0223319"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"copyrightText": "NOASSERTION",
|
|
103
|
+
"downloadLocation": "https://codeload.github.com/nothings/stb/tar.gz/31c1ad37456438565541f4919958214b6e762fb4",
|
|
104
|
+
"filesAnalyzed": false,
|
|
105
|
+
"licenseConcluded": "MIT OR Unlicense",
|
|
106
|
+
"licenseDeclared": "MIT OR Unlicense",
|
|
107
|
+
"name": "stb",
|
|
108
|
+
"versionInfo": "31c1ad37456438565541f4919958214b6e762fb4"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"SPDXID": "SPDXRef-Package-nlohmann-json",
|
|
112
|
+
"checksums": [
|
|
113
|
+
{
|
|
114
|
+
"algorithm": "SHA256",
|
|
115
|
+
"checksumValue": "0d8ef5af7f9794e3263480193c491549b2ba6cc74bb018906202ada498a79406"
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"copyrightText": "NOASSERTION",
|
|
119
|
+
"downloadLocation": "https://codeload.github.com/nlohmann/json/tar.gz/refs/tags/v3.11.3",
|
|
120
|
+
"filesAnalyzed": false,
|
|
121
|
+
"licenseConcluded": "MIT",
|
|
122
|
+
"licenseDeclared": "MIT",
|
|
123
|
+
"name": "nlohmann-json",
|
|
124
|
+
"versionInfo": "3.11.3"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"SPDXID": "SPDXRef-Package-pdfium-native",
|
|
128
|
+
"copyrightText": "Copyright (c) 2026 xonaman",
|
|
129
|
+
"downloadLocation": "https://github.com/xonaman/nodejs-pdfium-native/releases/tag/v0.6.1",
|
|
130
|
+
"filesAnalyzed": false,
|
|
131
|
+
"licenseConcluded": "MIT",
|
|
132
|
+
"licenseDeclared": "MIT",
|
|
133
|
+
"name": "pdfium-native",
|
|
134
|
+
"versionInfo": "0.6.1"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"SPDXID": "SPDXRef-Package-noto-sans-sc",
|
|
138
|
+
"copyrightText": "Copyright 2014-2021 Adobe",
|
|
139
|
+
"downloadLocation": "https://raw.githubusercontent.com/notofonts/noto-cjk/f8d157532fbfaeda587e826d4cd5b21a49186f7c/Sans/SubsetOTF/SC/NotoSansSC-Regular.otf",
|
|
140
|
+
"filesAnalyzed": false,
|
|
141
|
+
"licenseConcluded": "OFL-1.1",
|
|
142
|
+
"licenseDeclared": "OFL-1.1",
|
|
143
|
+
"name": "Noto Sans SC",
|
|
144
|
+
"versionInfo": "noto-cjk-sc-subset-20260730.1"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"relationships": [
|
|
148
|
+
{
|
|
149
|
+
"relatedSpdxElement": "SPDXRef-Package-onnxruntime",
|
|
150
|
+
"relationshipType": "DEPENDS_ON",
|
|
151
|
+
"spdxElementId": "SPDXRef-Package-light-ocr-core"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"relatedSpdxElement": "SPDXRef-Package-opencv",
|
|
155
|
+
"relationshipType": "DEPENDS_ON",
|
|
156
|
+
"spdxElementId": "SPDXRef-Package-light-ocr-core"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"relatedSpdxElement": "SPDXRef-Package-opencv-zlib",
|
|
160
|
+
"relationshipType": "CONTAINS",
|
|
161
|
+
"spdxElementId": "SPDXRef-Package-opencv"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"relatedSpdxElement": "SPDXRef-Package-opencv-carotene",
|
|
165
|
+
"relationshipType": "CONTAINS",
|
|
166
|
+
"spdxElementId": "SPDXRef-Package-opencv"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"relatedSpdxElement": "SPDXRef-Package-clipper",
|
|
170
|
+
"relationshipType": "DEPENDS_ON",
|
|
171
|
+
"spdxElementId": "SPDXRef-Package-light-ocr-core"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"relatedSpdxElement": "SPDXRef-Package-stb",
|
|
175
|
+
"relationshipType": "DEPENDS_ON",
|
|
176
|
+
"spdxElementId": "SPDXRef-Package-light-ocr-core"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"relatedSpdxElement": "SPDXRef-Package-nlohmann-json",
|
|
180
|
+
"relationshipType": "DEPENDS_ON",
|
|
181
|
+
"spdxElementId": "SPDXRef-Package-light-ocr-core"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"relatedSpdxElement": "SPDXRef-Package-pdfium-native",
|
|
185
|
+
"relationshipType": "DEPENDS_ON",
|
|
186
|
+
"spdxElementId": "SPDXRef-Package-light-ocr-core"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"relatedSpdxElement": "SPDXRef-Package-noto-sans-sc",
|
|
190
|
+
"relationshipType": "DEPENDS_ON",
|
|
191
|
+
"spdxElementId": "SPDXRef-Package-pdfium-native"
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
"spdxVersion": "SPDX-2.3"
|
|
195
|
+
}
|