Browser demo

The same engine compiled to WebAssembly, running inside the page. Your PDF never leaves your computer.

The demo on the home page loads khpdf as a WebAssembly module (about 790 KB) and runs it in a background thread. Drop a PDF and you get the text, the Markdown and the JSON, with copy and download buttons.

Private by design. The file is read by your browser and processed on your computer. Nothing is uploaded; there is no server.

Speed

Ordinary reports take a second or two: the 54-page World Bank report converts in about 1.4 seconds. Very large files take longer than on the command line: the 458-page, 54 MB ILO manual takes about half a minute in the browser.

Build it yourself

Terminal
rustup target add wasm32-unknown-unknown
cargo install wasm-bindgen-cli --version 0.2.130   # must match Cargo.lock
./web/build.sh                                     # builds into web/www
python3 -m http.server -d web/www 8080             # open http://localhost:8080

web/www is plain static files: this site, the docs and the demo. Host it anywhere.