Text layer

Definition

The machine-readable text stored inside a document alongside its visual appearance. It is what makes search and text selection possible, and it is exactly what a scanned page does not have.

A born-digital PDF carries both a drawing of each glyph and a record of which character that glyph represents. Search works because the second thing exists. A scanned page carries only the picture — visually identical, functionally inert.

This is the single most common source of confusion in document search projects. "Search does not work on these files" almost always means "these files were scanned", and no amount of tuning the search engine changes that. The fix is OCR, which is a different and considerably more expensive operation.

Office formats are the easy case: a DOCX or an XLSX is structured text by construction, so the text layer is never in question.

In Doconut

Full-text search runs against the text layer and is provided by the paid AdvancedSearch plugin. If a document has no text layer, it renders correctly but returns no search hits.

See how it works in practice

Definitions only carry you so far. A temporary licence runs on your own machine, against your own documents.