I built Scissor PDF, a set of 60 PDF tools that run entirely in your browser: https://pdf.scissor.studio
You pick a file, the tool runs on your device, and you download the result. Nothing is sent to a server.
This post is about how it works, what it is built on, and where it still falls short.
The engine: Rust and lopdf, compiled to WebAssembly
The PDF work is done by a small Rust crate built on lopdf (MIT). It merges, splits, rotates, crops, numbers pages, adds watermarks, flattens, and adds or removes passwords. The image crate (MIT/Apache-2.0) handles JPEG and PNG when photos are re-encoded or placed on pages.
wasm-bindgen turns it into a module the page can call. The compiled engine is 1.4 MB, about 600 KB with gzip. It runs in a Web Worker, so the page stays responsive while a 300-page file is processed.
Every tool page loads the same engine. The browser caches it, so after the first tool the next one starts at once.
Rendering and OCR: PDF.js and Tesseract
The engine edits PDFs but does not draw them. Previews, thumbnails and the PDF to image tools use PDF.js (Apache-2.0), served from the same site. Form filling uses PDF.js too: you type into its form layer, and it saves the values back into the file.
OCR uses Tesseract.js (Apache-2.0). Each page is rendered at up to 300 dpi, read by Tesseract, and the words are written back as an invisible text layer. The page looks exactly the same, but you can now search and copy the text. The language model is downloaded only for the language you choose, and only when you start OCR.
Compression is plain and predictable. Every level removes unused objects and packs the file into compressed object streams. The stronger levels also re-encode large photos as JPEG, at most 2200 pixels on the long side for "Recommended" and 1400 for "Strong". Text and vector graphics are never turned into images.
How files stay on the device
"We don't upload your files" is easy to claim, so I made the browser enforce it. Tool pages send this Content Security Policy:
default-src 'self'; script-src 'self' 'wasm-unsafe-eval'; connect-src 'self' blob: data:; form-action 'none' With connect-src 'self', the page cannot fetch or XMLHttpRequest to any other origin, and form-action 'none' blocks form posts. You can check this yourself: open the network tab in the developer tools, run a tool, and watch. The only requests go to the site's own scripts and fonts.
The full app at /app/ has one exception: an optional "Open from / Save to Google Drive" button. That page also allows Google's API hosts, and only for files you explicitly pick in Drive.
The limit: memory on large files
The honest weak spot is memory. WebAssembly in the browser gets one linear memory, and the file has to fit in it, sometimes several times over: the original bytes, the parsed document, and the result being written.
In my tests in desktop Chrome, split by size failed at around 1 GB of PDF. Phones give a tab much less memory and fail far sooner.
A recent fix made this much better for the split tools. Each part used to start from a full clone of the document, every image and font included, before anything was removed. Now the clone starts without stream data, and only the streams the part keeps are copied back:
fn part(doc: &Document, pages: &[u32]) -> Res<Vec<u8>> { let mut d = light_clone(doc); // dictionaries only, streams empty let ids = page_ids(&d); let chosen: Vec<ObjectId> = pages.iter().map(|n| ids[*n as usize - 1]).collect(); set_page_list(&mut d, &chosen)?; d.prune_objects(); for (id, obj) in d.objects.iter_mut() { if let (Object::Stream(s), Ok(Object::Stream(full))) = (obj, doc.get_object(*id)) { s.content = full.content.clone(); } } finish(d, false) } When a file is still too big, the worker catches the crash, says so plainly, and starts a fresh engine. You can close other tabs or try a smaller file without reloading the page.
Built as a static site
There is no backend for the tools. The site is 66 pages in 30 languages, generated by one Node build script and served as static files. The app works offline once it is installed. Crash reports and anonymous usage counts go to my own analytics, and they carry an error code and a stack, never file names or contents.
Try it
Try it: https://pdf.scissor.studio
It's free, with no account, no sign-up and no watermark.
One question for you: what is the largest PDF you need to handle in a browser, and on what device? I want to know where the memory limit actually hurts people, before deciding whether to stream files through the engine in chunks.
