Offline OCR archive — project plan

Plan as of 2 December 2026

Summary

We propose a self-hosted document archive that turns about 20 years of scanned paper into searchable, tagged PDF/A files, installed on the customer's own server and working with no internet connection.

Requirements and constraints

The system must run entirely inside the customer's network, read German reliably, and keep the archive legally usable.

RequirementWhat it means for the build
Installed in-houseRuns on one server owned by the customer, as Docker containers. No cloud service, no subscription.
Works offlineAll container images, Tesseract language data and AI models are shipped on the install media. Paperless-ngx's optional cloud OCR (Azure) and cloud AI stay off; its AI features, if wanted, run locally through Ollama.
German documentsPaperless-ngx ships German Tesseract data by default, so nothing is downloaded. OCR language set to deu+eng (the default is English only).
Data protection (DSGVO)Documents never leave the server. Access by named user accounts, with permissions per document, tag or group.
Originals keptPaperless-ngx stores the unaltered original next to the searchable PDF/A copy.
Paper destroyed after scanning?Only if the customer wants it ("ersetzendes Scannen"). Then the scanning process must follow GoBD, and the BSI guideline TR-03138 RESISCAN (v1.5, 21.11.2024) is the reference. A written process document (Verfahrensdokumentation) is needed; their tax adviser should sign it off.

User logins: the server is offline, so it cannot use an online sign-in service. Staff sign in with local accounts, or through the customer's own directory if they have one (Paperless-ngx supports OpenID Connect and reverse-proxy sign-in).

Open questions for the customer

These answers set the price and the hardware; we need them before the pilot.

Proposed solution

Paperless-ngx does the OCR, the filing and the search; PaddleOCR-VL is added only if the pilot shows Tesseract misses too much.

Architecture: scanned files (the 20-year paper archive and new office scans) go into a consume folder on the customer server, which is offline with no internet. Paperless-ngx picks them up; it does the OCR with Tesseract in German and English, assigns tags, sender and document type automatically, and offers full-text search with permissions. Staff in the office search and read in a web browser. Paperless-ngx writes to storage on the server: originals unchanged, searchable PDF/A copies, the database and search index. An optional PaddleOCR-VL service, which needs a GPU, re-reads hard pages: pages go out and text comes back, linked by our script. Storage is backed up nightly to a NAS with the Paperless-ngx document exporter, plus an off-site copy.
Architecture: one offline server, optional AI pass (dashed)

Scans enter through a watched folder, staff reach the archive from their browsers, and nothing crosses the building's network boundary except the hand-carried off-site backup.

Phases

Six phases, each closed by a gate; the pilot is the go/no-go point where accuracy, speed and the fixed price are agreed.

Six phases, each ending at a gate. 1. Discovery: the customer answers the open questions and provides a sample of about 200 pages; gate: answers and sample received. 2. Pilot: Tesseract versus PaddleOCR-VL, error rate on 20 typed pages, seconds and MB per page; gate: accuracy accepted, fixed quote signed. 3. Build: offline install bundle, PaddleOCR-VL script if used, backup job and checks; gate: installs and runs with the network unplugged. 4. Install on site: on the customer server, users, groups and permissions, tags and document types; gate: acceptance test, 20 known documents found by search. 5. Bulk import: archive imported in batches, sanity check after each, spot checks by staff; gate: all batches in, sanity check clean. 6. Handover: staff and admin training, admin guide in German, restore test from backup; gate: customer signs off, support starts.
Phases: six steps, each ends at a gate (diamond)

Durations are set after discovery, because they depend on the page count and scan quality, which we don't know yet. The pilot runs on the customer's premises, or on sample pages they send us under a data-processing agreement (AVV, DSGVO Art. 28).

Hardware sizing

One Linux server is enough; the figures below are a starting point and the pilot replaces them with measured ones.

PartStarting pointConfirmed by
Operating systemDebian or Ubuntu LTS with Docker—
CPU8 cores or more: Tesseract OCR runs on the CPU, one page per core at a timePilot: seconds per page × page count = bulk run time
RAM32 GBPilot: peak memory during the run
DiskPages × measured MB per page × 2 (original + PDF/A copy) + database and search index + 50 % headroomPilot: MB per page on the customer's own scans
GPU (only if PaddleOCR-VL is used)NVIDIA card with compute capability 8.0 or higher (RTX 30/40/50 series, A10, A100), as PaddleOCR recommends; older cards are "prone to timeouts or OOM" with its fast enginePilot: pages per minute with and without the GPU
BackupA second disk or NAS in the building, plus an off-site copy rotated by hand—

If the pilot shows Tesseract is good enough, the GPU is dropped and the server costs less.

Running it offline

The server never reaches the internet; everything it needs arrives on install or update media that we build and test first.

Risks

The biggest risk is poor scans; the pilot exists to find that out before money is committed.

RiskEffectWhat we do
Poor or faded scans, low resolutionWords misread, so documents can't be foundMeasure the error rate in the pilot; re-scan the worst batches at 300 dpi; send those pages through PaddleOCR-VL
HandwritingTesseract reads little of itMeasure in the pilot; PaddleOCR-VL claims handwriting support, but it is unproven on German until tested
Volume bigger than expectedBulk run takes weeksBulk run speed measured in the pilot; run in batches overnight and at weekends; add CPU cores if needed
Paper destroyed without a compliant processDocuments lose their value as tax evidenceKeep paper until a Verfahrensdokumentation is signed off by the tax adviser
Offline server falls behind on security fixesKnown vulnerabilities stay openNo internet exposure; scheduled update bundles; access only from the office network
Disk failureArchive lostNightly export to a NAS, off-site copy, yearly restore test
LicencesLegal exposure for the customerOnly tools whose code and models allow commercial use: Paperless-ngx (GPL-3.0), Tesseract and PaddleOCR (Apache-2.0). Surya / Marker are excluded because their models restrict commercial use

Sources

All checked on 2 December 2026.