Skip to content
tomkpPublic

About

A macOS app that scans paper into searchable PDFs with any AirScan (eSCL) network scanner.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Scanner

A macOS app that scans paper into searchable PDFs, using the scanner or all-in-one printer already on your network. It needs no drivers or vendor software.

CI

The Scanner window with a three-page scanned invoice open

Download the latest release · Web page

What it does

  • It finds the scanner on your network. Anything that speaks eSCL (also called AirScan or Mopria Scan) should work, which covers most HP, Canon, Epson and Brother devices from the last ten years.
  • Each document is one PDF. Press Scan for each page and the pages are added to the same file in Documents/Scans, which is saved after every page.
  • The PDFs are searchable. Text is read on your Mac and stored behind each page image, so Spotlight finds the document and you can select and copy from it.
  • New documents are named from the text on their first page ("Fernhill Cycle Works Invoice November 2026"). On macOS 26 or later with Apple Intelligence the name comes from the on-device model; otherwise it comes from the page's heading and date.
  • You can rotate, reorder and delete pages, or reopen an earlier scan (⌘O) to add more. Rotating does not re-compress the image.
  • Existing scanned PDFs can be made searchable by dropping them on the window. Their pages are copied as they are, with text added behind; the originals go to the Bin.
  • If the scanner has a document feeder, it can scan a stack, single- or double-sided.

The Scanner window before the first scan

Privacy

Nothing leaves your Mac. Text recognition and naming run on-device, and the only network traffic is between the app and your scanner, over HTTPS where the scanner offers it. There is no telemetry and no update check.

Install

With Homebrew:

brew install --cask tomkp/tap/scanner

brew upgrade then keeps it up to date. The app does not check for updates itself.

Or download the latest Scanner-x.y.zip from Releases, unzip it, and drag Scanner to Applications. Requires macOS 14 or later.

The first time you scan, macOS asks whether Scanner may find devices on your local network. It needs that to reach the scanner.

Build from source

Requires Xcode 26 or later. There is no Xcode project: it builds with Swift Package Manager.

./build.sh          # build and install into ~/Applications
swift test          # run the tests

build.sh signs with your Developer ID certificate if you have one, and ad hoc otherwise. To make a notarised, universal build for other people:

# once: store your notarisation credentials in the keychain
xcrun notarytool store-credentials scanner-notary --apple-id you@example.com --team-id TEAMID

VERSION=1.1 ./build.sh release      # -> build/Scanner-1.1.zip
gh release create v1.1 build/Scanner-1.1.zip --generate-notes

Then update the Homebrew cask. packaging/homebrew-cask.sh prints it, and it goes in tomkp/homebrew-tap as Casks/scanner.rb:

packaging/homebrew-cask.sh 1.1 build/Scanner-1.1.zip > ../homebrew-tap/Casks/scanner.rb

How it works

File What's in it
ESCL.swift The scanner protocol: capabilities, scan settings, the HTTP client
Discovery.swift Finding scanners with Bonjour
Pages.swift Pages, writing PDFs, and reading scanned PDFs back
TextRecognition.swift Reading text (Vision) and naming documents
SearchablePDF.swift Adding a text layer to existing PDFs
ScanModel.swift The document: scanning, autosave, naming
ScannerApp.swift The window (SwiftUI)

eSCL is plain HTTP and XML: GET /eSCL/ScannerCapabilities says what the scanner can do, POST /eSCL/ScanJobs starts a scan, and GET <job>/NextDocument returns each page as a JPEG. That JPEG is embedded in the PDF untouched.

Known limits

  • Developed against one HP flatbed. Document feeders and other makes are supported from the specification but untested on real hardware, so please open an issue if yours doesn't work.
  • Scanners serve HTTPS with self-signed certificates, which can't be verified. The app accepts them, as every AirScan client does: this keeps scans private from anyone listening on the network, but doesn't prove the device is the one it claims to be.
  • Making an existing PDF searchable keeps its pages, title and author, but not bookmarks, links or form fields.
  • Text is read in your Mac's preferred languages, where Vision supports them.

Licence

MIT

About

A macOS app that scans paper into searchable PDFs with any AirScan (eSCL) network scanner.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages