Tools,

ScanTailor, tested in 2026

30 of 30

book pages split right, off-center seams too

Get the Dockerfile

ScanTailor splits, straightens and cleans scanned pages. I ran its command line on 113 test scans.

Which ScanTailor still runs

Checked November 20, 2026
Version Last release Command line
Advanced 1.2.1 May 24, 2026 No, app only
Experimental 1.2026.11.11 Nov 10, 2026 Writes no pages
Universal 0.2.14 Aug 19, 2023 Yes, all 6 steps

Run it with Docker

This Dockerfile builds ScanTailor Universal from its source. I built and ran it on an Apple Silicon Mac.

curl -O https://brasspage.com/scantailor/Dockerfile
docker build -t scantailor-cli .
mkdir scans out
pdftoppm -r 300 -png scan.pdf scans/p
docker run --rm --user "$(id -u):$(id -g)" -v "$PWD/scans:/in:ro" -v "$PWD/out:/out" scantailor-cli scantailor-universal-cli --dpi=300 /in /out
img2pdf out/*.tif -o clean.pdf
ocrmypdf clean.pdf searchable.pdf

Set --dpi to your scan's resolution. On a Mac you need Docker Desktop and brew install poppler img2pdf ocrmypdf. There is no Homebrew formula for ScanTailor itself.

These commands on 2 of our aged pages, 216 words
Before After
OCRmyPDF words 118 214
PDF size 1.6 MB 76 KB

It splits book pages right

5 book spreads a set, 10 pages, 1,955 words
Seam at Pages right Words in order
50% of the width 10 of 10 1,871
44%, dark band at the edge 10 of 10 1,868
40%, dark band at the edge 10 of 10 1,869

On the 40% set, a plain cut in the middle found 1,680 words. Our split-half.py found 1,876.

It straightens up to about 7 degrees

40 tilted made-up pages, straight means within 0.5 degrees
Tilt Made straight Words found
1 to 6 degrees 24 of 24 97.1%
8 degrees 2 of 4 97.4%
10 to 15 degrees 0 of 12 31.7%

Its auto deskew searches 7 degrees each way, then half a degree more. Advanced and Experimental have the same limit. Three free tools on Deskew a PDF straightened all 40 pages.

It cleans aged pages, with costs

6 fully aged pages: yellow paper, show-through, specks, a shadow. 966 words.
Way Tesseract words PDF
As scanned 721, 472 false 5.1 MB
clean_scan.py 943, 22 false 2.1 MB
ScanTailor, black and white 913, 64 false 258 KB
Part of an aged made-up form, twice: on top as scanned, yellow with mirrored text from the back page, and below after ScanTailor, black text on white with the gray header shading and table lines gone and a few specks left
Top: as scanned. Bottom: ScanTailor.

Then turn it into text

Our Apify Actor turns scanned PDFs and TIFF pages into Markdown and text. Its code found 947 of 966 words on ScanTailor's pages, up from 842.

The free plan takes 20 pages a run, 50 a month. An OCR page costs $0.006.

Try the Actor

How I tested it
  • ScanTailor Universal 0.2.14 built in Docker (Debian 12, arm64), with the command line defaults plus --dpi=300. Gray mode added equalize illumination and white margins.
  • 3 sets from earlier pages: 48 aged made-up scans and 10 real book pages, 40 tilted made-up pages, and 15 two-page spreads of real book scans.
  • Tesseract 5.5.4, OCRmyPDF 17.13.0. Our Actor's code at commit 528fe416 (build 0.1.102). No Apify run.
  • Tesseract read ScanTailor's pages at its 600 dpi output. The earlier rows were read at 300 dpi, so they compare closely, not exactly.
  • No ScanTailor package in 6 Debian and Ubuntu releases since 2020. Ubuntu 18.04 still has the original.
  • About 2 seconds a page on 3 CPU cores, Docker start included.
What I did not test

The ScanTailor apps, Linux and Intel machines, dewarping of curled pages, the --rotate option for big tilts, the MacPorts port, color pictures on a page, handwriting, and languages other than English.

Questions people ask

Does ScanTailor have a command line?

ScanTailor Universal does: scantailor-universal-cli ran all 6 steps and wrote the pages in our test. ScanTailor Advanced has no command line program in its source.

Does ScanTailor work on a Mac?

There is no Homebrew formula. MacPorts has a scantailor port, and Universal 0.2.12 had a Mac app in 2021. I did not try them. Universal's command line ran in Docker on an Apple Silicon Mac.

Does ScanTailor do OCR?

No. The Advanced, Experimental and Universal sources have no OCR code. I used it to prepare pages, and the text came from Tesseract and OCRmyPDF.