Use qpdf-wasm (a WebAssembly build of the qpdf CLI) to process PDFs entirely in the browser without uploading to a server.