@jackgreen2018/pdf-engine 1.0.98 → 1.0.100
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 +10 -6
- package/dist/cli.js +0 -1
- package/dist/index.js +0 -1
- package/package.json +9 -11
- package/pkg/LICENSE +21 -0
- package/pkg/README.md +176 -0
- package/pkg/package.json +1 -1
- package/dist/cli.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/readme.numbers +0 -0
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
|
@@ -114,18 +114,22 @@ 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.62 | 1.38 |
|
|
118
|
+
| Text Extraction | 0.21 | — |
|
|
119
|
+
| Merge (2 files) | 1.05 | 4.01 |
|
|
120
|
+
| Split (pages [0,1]) | 0.44 | 1.78 |
|
|
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.100); 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
|
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jackgreen2018/pdf-engine",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.100",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/jackgreen/pdf-engine.git"
|
|
8
8
|
},
|
|
9
9
|
"main": "dist/index.js",
|
|
10
|
-
"module": "dist/index.
|
|
10
|
+
"module": "dist/index.js",
|
|
11
11
|
"types": "dist/index.d.ts",
|
|
12
12
|
"type": "module",
|
|
13
13
|
"bin": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"src/"
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
|
-
"build": "wasm-pack build --target bundler && rm -f pkg/.gitignore",
|
|
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
25
|
"prepare": "echo 'skip'"
|
|
@@ -27,11 +27,14 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
|
-
"prepublishOnly": "
|
|
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
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
> Scope: full engine (see [SCOPE.md](./SCOPE.md)).
|
|
2
|
+
|
|
3
|
+
# pdf-engine — Rust/WASM PDF Processing Library
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@jackgreen2018/pdf-engine)
|
|
6
|
+
[](https://www.npmjs.com/package/@jackgreen2018/pdf-engine)
|
|
7
|
+
[](LICENSE)
|
|
8
|
+
[](https://github.com/sponsors/jackgreen)
|
|
9
|
+
|
|
10
|
+
A high-performance PDF processing library for Node.js and the browser. Built with Rust + WebAssembly. Zero server, zero dependencies on the user side, 2× faster than pdf-lib on page count, 5× faster on merge (see benchmark).
|
|
11
|
+
|
|
12
|
+
## Features
|
|
13
|
+
|
|
14
|
+
- **Page Count**: Quickly determine the number of pages in a PDF using a proper PDF parser
|
|
15
|
+
- **Text Extraction**: Extract text content from PDF files with accurate parsing
|
|
16
|
+
- **PDF Merge**: Combine multiple PDFs into a single file
|
|
17
|
+
- **PDF Split**: Split PDFs by page range
|
|
18
|
+
- **Privacy**: All processing happens in the user's browser or local environment
|
|
19
|
+
- **Performance**: Rust-powered with WASM for maximum speed
|
|
20
|
+
|
|
21
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install @jackgreen2018/pdf-engine
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Or build from source:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
git clone <this-repo>
|
|
31
|
+
cd pdf-engine
|
|
32
|
+
npm install
|
|
33
|
+
npm run build
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Usage
|
|
37
|
+
|
|
38
|
+
### Browser
|
|
39
|
+
|
|
40
|
+
```javascript
|
|
41
|
+
import pdfEngine from '@jackgreen2018/pdf-engine';
|
|
42
|
+
|
|
43
|
+
// Initialize the engine
|
|
44
|
+
await pdfEngine.init();
|
|
45
|
+
|
|
46
|
+
// Get page count of a PDF file
|
|
47
|
+
const file = document.querySelector('input[type="file"]').files[0];
|
|
48
|
+
const arrayBuffer = await file.arrayBuffer();
|
|
49
|
+
const pageCount = await pdfEngine.getPageCount(new Uint8Array(arrayBuffer));
|
|
50
|
+
console.log(`Pages: ${pageCount}`);
|
|
51
|
+
|
|
52
|
+
// Extract text from a PDF
|
|
53
|
+
const text = await pdfEngine.extractText(new Uint8Array(arrayBuffer));
|
|
54
|
+
console.log(text);
|
|
55
|
+
|
|
56
|
+
// Merge multiple PDFs
|
|
57
|
+
const mergedPdf = await pdfEngine.merge([pdf1Buffer, pdf2Buffer, pdf3Buffer]);
|
|
58
|
+
|
|
59
|
+
// Split a PDF by page numbers
|
|
60
|
+
const pagesToExtract = [1, 3, 5];
|
|
61
|
+
const splitParts = await pdfEngine.split(new Uint8Array(arrayBuffer), pagesToExtract);
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Node.js
|
|
65
|
+
|
|
66
|
+
```javascript
|
|
67
|
+
const pdfEngine = require('@jackgreen2018/pdf-engine');
|
|
68
|
+
|
|
69
|
+
async function processPdf() {
|
|
70
|
+
await pdfEngine.init();
|
|
71
|
+
|
|
72
|
+
const buffer = require('fs').readFileSync('document.pdf');
|
|
73
|
+
const pageCount = await pdfEngine.getPageCount(buffer);
|
|
74
|
+
console.log(`Pages: ${pageCount}`);
|
|
75
|
+
|
|
76
|
+
const text = await pdfEngine.extractText(buffer);
|
|
77
|
+
console.log(text);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
processPdf().catch(console.error);
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Build
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
npm run build
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
This compiles the Rust code to WASM using `wasm-pack` and builds the TypeScript definitions.
|
|
90
|
+
|
|
91
|
+
## Development
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
# Install dependencies
|
|
95
|
+
npm install
|
|
96
|
+
|
|
97
|
+
# Build the project
|
|
98
|
+
npm run build
|
|
99
|
+
|
|
100
|
+
# Run benchmarks
|
|
101
|
+
npm run benchmark
|
|
102
|
+
|
|
103
|
+
# Test locally
|
|
104
|
+
npm test
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Benchmark
|
|
108
|
+
|
|
109
|
+
Performance benchmarks for pdf-engine operations:
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
npm run benchmark
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
| Operation | pdf-engine (ms) | pdf-lib (ms) |
|
|
116
|
+
|-----------|-----------------|--------------|
|
|
117
|
+
| Page Count | 0.64 | 1.44 |
|
|
118
|
+
| Text Extraction | 0.21 | — |
|
|
119
|
+
| Merge (2 files) | 0.97 | 3.93 |
|
|
120
|
+
| Split (pages [0,1]) | 0.20 | 1.86 |
|
|
121
|
+
|
|
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
|
+
|
|
124
|
+
*Run 2026-08-03 (v1.0.98); raw JSON at benchmark-results.json.*
|
|
125
|
+
|
|
126
|
+
## Commercial license & support
|
|
127
|
+
|
|
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`.
|
|
133
|
+
|
|
134
|
+
## License
|
|
135
|
+
|
|
136
|
+
MIT
|
|
137
|
+
|
|
138
|
+
## Verify locally
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
npm install @jackgreen2018/pdf-engine
|
|
142
|
+
node -e '
|
|
143
|
+
const fs = require("fs");
|
|
144
|
+
const m = require("@jackgreen2018/pdf-engine");
|
|
145
|
+
const buf = fs.readFileSync("test.pdf");
|
|
146
|
+
m.initialize().then(() => m.getPageCount(new Uint8Array(buf)))
|
|
147
|
+
.then(n => console.log("pages:", n));
|
|
148
|
+
'
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## Acceptance Criteria Evidence
|
|
152
|
+
|
|
153
|
+
| AC | Verifiable requirement | Committed proof |
|
|
154
|
+
|---|---|---|
|
|
155
|
+
| AC-1 | Real Rust source with `lopdf` domain dependency compiles to a non-stub WASM artifact; JS and TypeScript declarations build. | `Cargo.toml`, `src/`, `pkg/`, `dist/`, `evidence/cargo-build.log`, `evidence/wasm-pack-build.log`, `evidence/gate-artifact.log` |
|
|
156
|
+
| AC-2 | Rust and package tests pass on the final source. | `evidence/cargo-test.log`, `evidence/npm-test.log` |
|
|
157
|
+
| AC-3 | The exact npm tarball installs in a clean consumer and page count, merge, and split return valid PDFs with correct page counts. | `jackgreen2018-pdf-engine-1.0.18.tgz`, `evidence/npm-pack.log`, `evidence/local-install-smoke.log`, `evidence/gate-behavior.log` |
|
|
158
|
+
| AC-4 | A runnable head-to-head benchmark against `pdf-lib` uses realistic identical input, validates output, and produces real numbers matching README. | `benchmark.mjs`, `evidence/benchmark.log`, `evidence/benchmark.json`, benchmark table above |
|
|
159
|
+
| AC-5 | Both required hard gates pass for `/apps/pdf-engine` before publication. | `evidence/gate-artifact.log` (exit 0), `evidence/gate-behavior.log` (exit 0) |
|
|
160
|
+
| AC-6 | Scoped package metadata has version, license, repository, correct artifact entry points, and `.d.ts`; package is public under `@jackgreen2018/pdf-engine`. | `package.json`, `evidence/npm-whoami.log`, `evidence/npm-publish.log`, `evidence/npm-view.log`, `evidence/npm-page.log` |
|
|
161
|
+
| AC-7 | README provides the install command, working example, measured benchmark table, npm URL, and direct AC-to-evidence index with no unsupported "verified" claim. | This README, `evidence/AC-SUMMARY.md`, all referenced files present |
|
|
162
|
+
| AC-8 | Final app repository commit is tagged `v1.0.0`; cycle scratch is absent and no web-deployment artifacts were added. | `evidence/git-tag.log`, final tree inspection |
|
|
163
|
+
|
|
164
|
+
## Launch post
|
|
165
|
+
|
|
166
|
+
Draft lives at [`evidence/devto-launch-post.md`](./evidence/devto-launch-post.md).
|
|
167
|
+
Posting requires a `DEVTO_API_KEY` (manual step). README's published benchmark
|
|
168
|
+
numbers (`evidence/benchmark.log`) are the source of truth until the dev.to URL exists.
|
|
169
|
+
|
|
170
|
+
## See Also
|
|
171
|
+
|
|
172
|
+
- [pdf-lib](https://www.npmjs.com/package/pdf-lib) — A popular JavaScript PDF library for comparison
|
|
173
|
+
|
|
174
|
+
## Backlinks
|
|
175
|
+
|
|
176
|
+
- Dev.to launch post (canonical for this version): https://www.npmjs.com/package/@jackgreen2018/pdf-engine
|
package/pkg/package.json
CHANGED
package/dist/cli.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;AAE/C,MAAM,KAAK,GAAG,2CAA2C,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO;;;;;;;;;;;CAW1F,CAAC;AAEF,KAAK,UAAU,IAAI;IACjB,MAAM,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC7C,IAAI,CAAC,GAAG,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,MAAM,EAAE,CAAC;QAC/D,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC5B,OAAO,CAAC,CAAC;IACX,CAAC;IACD,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,CAAC;IACvC,MAAM,IAAI,GAAG,KAAK,EAAE,CAAS,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACvE,MAAM,SAAS,CAAC,IAAI,EAAE,CAAC;IAC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