Skip to content
Tech News
← Back to articles

Show HN: Make PDFs look scanned (CLI or in the browser via WASM)

read original get Scan Tailor Advanced → more articles
Why This Matters

This new CLI tool enables users to transform digital PDFs into images that resemble scanned documents, complete with realistic artifacts like skew, grain, and shadows. Its ability to run client-side via WASM also enhances privacy and accessibility, making it a valuable asset for digital forensics, document management, and creative projects in the tech industry. By simulating the look of physical scans, it bridges the gap between digital and analog formats, offering new possibilities for document presentation and authenticity verification.

Key Takeaways

A CLI that takes a PDF and degrades it to look like a physical scan of a printout — skew, grayscale, warm paper tone, scanner grain, defocus, edge shadow, and JPEG compression artifacts. Also runs client-side in the browser via WASM.

Each page is rasterized to an image, run through the effect pipeline, and reassembled into a new image-only PDF (the original selectable text is gone — faithful to a basic scanner).

Build

Requires Go and a C toolchain (go-fitz links MuPDF via cgo, so the binary is self-contained — nothing to install at runtime).

go build -o make-look-scanned .

Usage

make-look-scanned [flags] input.pdf

Flags may appear before or after the input filename.

make-look-scanned in.pdf # -> in.scanned.pdf make-look-scanned in.pdf -o out.pdf make-look-scanned in.pdf --noise 0.4 --skew 2.5 --jpeg-quality 30

Flags

... continue reading