Insights for law firms
Re-OCRing existing PDFs with a bad text layer
By Jonas Maximilian Regul
When searchability is already present - and still wrong - you need deliberate replacement, not more compression.
Some PDFs look modern and searchable yet return rubbish on search. The cause is often an old, faulty text layer from an earlier OCR run or from an Office export with broken encoding. Recompressing changes nothing. Re-OCR does - if the existing layer is removed or overwritten first.
Spotting when re-OCR is needed
Clues: search finds strings that do not appear on the page; copying yields replacement characters; matter references are systematically wrong although the image is clear. Another clue: mixed page quality in the same document - some pages with a usable layer, others with legacy junk. In those cases, targeted re-OCR of affected ranges beats a blind full run without analysis.
Deal with the old layer before recognising anew
Without removing or cleanly overwriting the old layer, some tools stack text traces. The result then looks "doubly searchable" and becomes less predictable. Create a working copy, check the visible image, remove old text or choose a replace mode for re-OCR, then run spot checks again. Check signed files and form PDFs for side effects first.
Risks and archiving
Re-OCR changes file structure. Keep the source PDF as the original and name the newly produced version clearly. For filing, the controlled new version counts; for the matter file, the original may remain as provenance. Avoid silently overwriting under the same filename - covering solicitors need a trail.
Do not confuse re-OCR with optimisation
Some teams start re-OCR because the file "feels too large". That is the wrong trigger. Check compression and image quality first; re-OCR only when search or copy is demonstrably wrong. Otherwise you risk new faults on previously usable pages.
Work page-wise or section-wise when only parts are affected. A global run across an already mixed document can destroy good layers. After the run, use the same spot-check logic as for fresh OCR: references, names, amounts. Only then may the new version become the working file for filing.
Teams that prepare filings regularly benefit from a fixed sequence: secure the raw version, run technical clean-up, complete substantive spot checks, and only then upload to the portal. Breaking that sequence is the most common cause of duplicate work just before a deadline. Record settings and exceptions briefly on the matter file so covering solicitors can follow the same path without digging through chat history.
Quality here comes less from extra tools and more from repeatable decisions under time pressure. A short next-working-day recheck - page count, filename, visible first and last page - catches residual faults before clients or the court react. The process then stays calm even when several matters run in parallel.
LexLogik can bundle OCR steps in the browser even when files already carry a text layer. Whether re-OCR is professionally necessary is decided by spot checks - not by the wish for a smaller file.
When re-OCR is mandatory
Re-OCR is mandatory when samples corrupt critical fields or the existing text layer clearly follows the wrong language. Support archives the old copy; the matter lead releases the re-OCR run. Without an archive, dispute follows over which version “really” powered search.
Replacing a bad text layer is worth it when samples hit critical fields - not as routine on every file. Archiving the old copy plus a release keeps re-OCR traceable and deadline-safe.
Try LexLogik in your practice
All features unlocked. No credit card. No automatic subscription.