Developer builds browser-only PDF OCR and signing tools with no server uploads
A developer has released two browser-based PDF tools — one that makes scanned PDFs searchable via OCR, and another that adds signatures — neither of which uploads files to any server. Both tools run entirely within the browser tab, and all data is discarded once the tab is closed. The OCR tool uses pdf.js to render pages, tesseract.js for text recognition, and pdf-lib to embed an invisible text layer over the original scan. A key technical challenge was making WebAssembly-based OCR work under a strict Content-Security-Policy without relying on a CDN, which the developer solved by vendoring all required assets from the same origin. The CSP is generated per request via a Cloudflare Worker, scoping the necessary 'wasm-unsafe-eval' permission only to the OCR route rather than the entire site.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in