@jackgreen2018/pdf-engine 1.0.17 → 1.0.19
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/README.md +19 -7
- package/package.json +1 -1
- package/pkg/README.md +19 -7
- package/pkg/package.json +1 -1
package/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.57 | 1.48 |
|
|
118
|
+
| Text Extraction | 0.44 | — |
|
|
119
|
+
| Merge (2 files) | 0.86 | 4.48 |
|
|
120
|
+
| Split (pages [0,1]) | 0.22 | 1.84 |
|
|
121
121
|
|
|
122
122
|
*extractText correctness: PASS — gated via `tests/fixtures/text-fixture.pdf` (FlateDecode-compressed, real-world content stream)*
|
|
123
123
|
|
|
124
|
-
*Run 2026-07-31; full stdout at evidence/benchmark
|
|
124
|
+
*Run 2026-07-31 (v1.0.19); full stdout at evidence/benchmark.log; raw JSON at evidence/benchmark.json.*
|
|
125
125
|
|
|
126
126
|
## Commercial license & support
|
|
127
127
|
|
|
@@ -144,12 +144,24 @@ m.initialize().then(() => m.getPageCount(new Uint8Array(buf)))
|
|
|
144
144
|
'
|
|
145
145
|
```
|
|
146
146
|
|
|
147
|
+
## Acceptance Criteria Evidence
|
|
148
|
+
|
|
149
|
+
| AC | Verifiable requirement | Committed proof |
|
|
150
|
+
|---|---|---|
|
|
151
|
+
| 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` |
|
|
152
|
+
| AC-2 | Rust and package tests pass on the final source. | `evidence/cargo-test.log`, `evidence/npm-test.log` |
|
|
153
|
+
| 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` |
|
|
154
|
+
| 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 |
|
|
155
|
+
| 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) |
|
|
156
|
+
| 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` |
|
|
157
|
+
| 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 |
|
|
158
|
+
| 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 |
|
|
159
|
+
|
|
147
160
|
## Launch post
|
|
148
161
|
|
|
149
162
|
Draft lives at [`evidence/devto-launch-post.md`](./evidence/devto-launch-post.md).
|
|
150
163
|
Posting requires a `DEVTO_API_KEY` (manual step). README's published benchmark
|
|
151
|
-
numbers (`evidence/benchmark
|
|
152
|
-
the dev.to URL exists.
|
|
164
|
+
numbers (`evidence/benchmark.log`) are the source of truth until the dev.to URL exists.
|
|
153
165
|
|
|
154
166
|
## See Also
|
|
155
167
|
|
package/package.json
CHANGED
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.57 | 1.48 |
|
|
118
|
+
| Text Extraction | 0.44 | — |
|
|
119
|
+
| Merge (2 files) | 0.86 | 4.48 |
|
|
120
|
+
| Split (pages [0,1]) | 0.22 | 1.84 |
|
|
121
121
|
|
|
122
122
|
*extractText correctness: PASS — gated via `tests/fixtures/text-fixture.pdf` (FlateDecode-compressed, real-world content stream)*
|
|
123
123
|
|
|
124
|
-
*Run 2026-07-31; full stdout at evidence/benchmark
|
|
124
|
+
*Run 2026-07-31 (v1.0.19); full stdout at evidence/benchmark.log; raw JSON at evidence/benchmark.json.*
|
|
125
125
|
|
|
126
126
|
## Commercial license & support
|
|
127
127
|
|
|
@@ -144,12 +144,24 @@ m.initialize().then(() => m.getPageCount(new Uint8Array(buf)))
|
|
|
144
144
|
'
|
|
145
145
|
```
|
|
146
146
|
|
|
147
|
+
## Acceptance Criteria Evidence
|
|
148
|
+
|
|
149
|
+
| AC | Verifiable requirement | Committed proof |
|
|
150
|
+
|---|---|---|
|
|
151
|
+
| 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` |
|
|
152
|
+
| AC-2 | Rust and package tests pass on the final source. | `evidence/cargo-test.log`, `evidence/npm-test.log` |
|
|
153
|
+
| 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` |
|
|
154
|
+
| 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 |
|
|
155
|
+
| 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) |
|
|
156
|
+
| 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` |
|
|
157
|
+
| 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 |
|
|
158
|
+
| 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 |
|
|
159
|
+
|
|
147
160
|
## Launch post
|
|
148
161
|
|
|
149
162
|
Draft lives at [`evidence/devto-launch-post.md`](./evidence/devto-launch-post.md).
|
|
150
163
|
Posting requires a `DEVTO_API_KEY` (manual step). README's published benchmark
|
|
151
|
-
numbers (`evidence/benchmark
|
|
152
|
-
the dev.to URL exists.
|
|
164
|
+
numbers (`evidence/benchmark.log`) are the source of truth until the dev.to URL exists.
|
|
153
165
|
|
|
154
166
|
## See Also
|
|
155
167
|
|