@jackgreen2018/pdf-engine 1.0.89 → 1.0.90
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 +7 -3
- package/package.json +7 -9
- package/pkg/LICENSE +21 -0
- package/pkg/README.md +6 -6
- package/pkg/package.json +2 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Jack Green
|
|
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.
|
package/README.md
CHANGED
|
@@ -121,11 +121,15 @@ npm run benchmark
|
|
|
121
121
|
|
|
122
122
|
*extractText correctness: PASS — gated via `tests/fixtures/text-fixture.pdf` (FlateDecode-compressed, real-world content stream). v1.0.30 fixes extractText to return actual text instead of "No text extracted."*
|
|
123
123
|
|
|
124
|
-
*Run 2026-08-03 (v1.0.
|
|
124
|
+
*Run 2026-08-03 (v1.0.90); raw JSON at benchmark-results.json.*
|
|
125
125
|
|
|
126
126
|
## Commercial license & support
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
Need to ship `pdf-engine` in closed-source software without the MIT attribution requirement, or need it for procurement/legal sign-off? A perpetual, per-seat commercial license is $49 one-time.
|
|
129
|
+
|
|
130
|
+
**[Buy the commercial license →](https://creem.io/product/prod_3ZlNAxFzbn9vwfT4Ho3OKJ)**
|
|
131
|
+
|
|
132
|
+
See [COMMERCIAL-LICENSE.md](./COMMERCIAL-LICENSE.md) for full terms. Team licenses, POs, or questions: `jackgreen2018+sponsors@gmail.com`.
|
|
129
133
|
|
|
130
134
|
## License
|
|
131
135
|
|
|
@@ -169,4 +173,4 @@ numbers (`evidence/benchmark.log`) are the source of truth until the dev.to URL
|
|
|
169
173
|
|
|
170
174
|
## Backlinks
|
|
171
175
|
|
|
172
|
-
- Dev.to launch post (canonical for this version): https://www.npmjs.com/package/@jackgreen2018/pdf-engine
|
|
176
|
+
- Dev.to launch post (canonical for this version): https://www.npmjs.com/package/@jackgreen2018/pdf-engine
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jackgreen2018/pdf-engine",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.90",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,16 +22,19 @@
|
|
|
22
22
|
"build": "wasm-pack build --target bundler && rm -f pkg/.gitignore && tsc",
|
|
23
23
|
"benchmark": "node benchmark.mjs",
|
|
24
24
|
"test": "node tests/smoke.js",
|
|
25
|
-
"prepare": "
|
|
25
|
+
"prepare": "echo 'skip'"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"prepublishOnly": "npm run build",
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@types/node": "
|
|
32
|
+
"@types/node": "26.1.2",
|
|
33
|
+
"pako": "3.0.1",
|
|
33
34
|
"pdf-lib": "^1.17.1",
|
|
34
|
-
"
|
|
35
|
+
"tslib": "2.8.1",
|
|
36
|
+
"typescript": "7.0.2",
|
|
37
|
+
"undici-types": "8.9.0"
|
|
35
38
|
},
|
|
36
39
|
"description": "A lightweight, high-performance PDF processing library that runs in the browser and Node.js via Rust/WASM. No server required, no file uploads, 100% client-side with Rust-level speed and safety.",
|
|
37
40
|
"keywords": [
|
|
@@ -53,10 +56,5 @@
|
|
|
53
56
|
"homepage": "https://github.com/jackgreen/pdf-engine#readme",
|
|
54
57
|
"directories": {
|
|
55
58
|
"test": "tests"
|
|
56
|
-
},
|
|
57
|
-
"dependencies": {
|
|
58
|
-
"pako": "^1.0.11",
|
|
59
|
-
"tslib": "^1.14.1",
|
|
60
|
-
"undici-types": "^8.3.0"
|
|
61
59
|
}
|
|
62
60
|
}
|
package/pkg/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Jack Green
|
|
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.
|
package/pkg/README.md
CHANGED
|
@@ -114,14 +114,14 @@ npm run benchmark
|
|
|
114
114
|
|
|
115
115
|
| Operation | pdf-engine (ms) | pdf-lib (ms) |
|
|
116
116
|
|-----------|-----------------|--------------|
|
|
117
|
-
| Page Count | 0.
|
|
118
|
-
| Text Extraction | 0.
|
|
119
|
-
| Merge (2 files) |
|
|
120
|
-
| Split (pages [0,1]) | 0.
|
|
117
|
+
| Page Count | 0.56 | 1.41 |
|
|
118
|
+
| Text Extraction | 0.28 | — |
|
|
119
|
+
| Merge (2 files) | 0.95 | 3.77 |
|
|
120
|
+
| Split (pages [0,1]) | 0.22 | 1.75 |
|
|
121
121
|
|
|
122
122
|
*extractText correctness: PASS — gated via `tests/fixtures/text-fixture.pdf` (FlateDecode-compressed, real-world content stream). v1.0.30 fixes extractText to return actual text instead of "No text extracted."*
|
|
123
123
|
|
|
124
|
-
*Run 2026-08-
|
|
124
|
+
*Run 2026-08-02 (v1.0.80); raw JSON at benchmark-results.json.*
|
|
125
125
|
|
|
126
126
|
## Commercial license & support
|
|
127
127
|
|
|
@@ -169,4 +169,4 @@ numbers (`evidence/benchmark.log`) are the source of truth until the dev.to URL
|
|
|
169
169
|
|
|
170
170
|
## Backlinks
|
|
171
171
|
|
|
172
|
-
- Dev.to launch post (canonical for this version): https://www.npmjs.com/package/@jackgreen2018/pdf-engine
|
|
172
|
+
- Dev.to launch post (canonical for this version): https://www.npmjs.com/package/@jackgreen2018/pdf-engine
|