Skip to content

Printguard v0.2.0 — compare your own PDFs

Latest

Choose a tag to compare

@lsj0914 lsj0914 released this 06 Oct 01:18

Visitors can now compare their own PDFs. Choose a baseline and a new export, inspect every changed page, check required phrases and download a standalone HTML or JSON report. PDF contents are processed locally in the browser and are not sent to a server.

The homepage puts this working upload flow before the five synthetic examples. Browser checks cover added/deleted pages, physical dimensions and required text. Precise dynamic text/region masks remain in the CLI and Playwright API; native browser and Node rendering may differ.

Install the Node package with Node.js 22.13.0 or newer:

npm install https://github.com/lsj0914/printguard/releases/download/v0.2.0/printguard-0.2.0.tgz
npx printguard demo --out ./printguard-demo

Validation: 94 unit/process/integration tests and 38 desktop/mobile browser cases, including real file selection, no file-bearing network requests, corrupt/encrypted rejection, Chinese text, limits, cancellation, stale result removal, history return and downloaded-report independence. A production-only installation checks offline Node resources, declarations and a separate Playwright consumer. Verification record.

Browser limits: 20 MiB / 50 pages per file, 8 million pixels per page/comparison and 64 million total rendered pixels. Tested with desktop/mobile Chromium. The browser flow requires modern browser features.

This package is distributed through GitHub Releases, not the npm registry. Source is MIT licensed; embedded Noto font subsets retain their OFL license. The attached checksum verifies the tarball.