About Services Tools Blog Contact us

Document OCR, Layout and Tables

Reads a scanned page into text with positions, labels the areas of the page and rebuilds tables as rows and cells.

  • Document Understanding & OCR
  • Cross-sector
  • Pipeline
  • Productised
  • Local/private
  • 2025

The problem

A scan or a complex PDF cannot be searched, quoted or checked until someone retypes it. Plain text reading (OCR) loses the titles, figures and the grid of any table. The numbers are then still stuck in the picture.

What it does

Three tools run on the same page. One returns each line of text with its position. One labels areas such as titles, figures and tables. One rebuilds table rows and cells. Their output can feed a search that answers with sources, or run on a folder on its own.

Outcomes

  • Scanned pages become quotable text with positions.
  • Tables keep their grid and do not turn into a jumble of lines.
  • The same parsers serve a search index or a one-off folder.
  • Staff can see which region each line came from.

Simplified mockup

Interactive preview with sample data. Nothing is sent to a server.

Chamber invoice

Tax invoice
Hale Court Plant Ltd
Unit 4, Lock Lane, Weirham, WR2 4QX
INV-20418 · 4 March 2026
VAT GB 442 9183 27
Figure 1. Chamber layout
DescriptionQtyAmount
Vortex regulator VR-1802£1,840.00
Throttle penstock DN 1501£960.00
Setpoint orifice plate4£220.00
Net£3,020.00
VAT£604.00
Total£3,624.00

Table reader · rows and cells

DescriptionQtyAmount
Vortex regulator VR-1802£1,840.00
Throttle penstock DN 1501£960.00
Setpoint orifice plate4£220.00

3 body rows · 9 cells · header kept apart from the amounts

Three readers, one page. OCR boxes the lines. Layout tints the title, the figure and the table. Tables replaces the picture with a grid.

  • Green boxes are the line bounds from the text reader.
  • Title Figure Table
  • The picture is replaced by description, quantity and amount.

Lines and regions

chamber-invoice.png
LineBoxRegionText
124, 18, 90, 12titleTax invoice
224, 34, 180, 16titleHale Court Plant Ltd
324, 56, 210, 12textUnit 4, Lock Lane, Weirham, WR2 4QX
424, 72, 160, 12textINV-20418
524, 88, 140, 12textVAT GB 442 9183 27
624, 112, 200, 48figureFigure 1. Chamber layout
724, 170, 220, 14tableDescription, Qty, Amount
824, 186, 220, 14tableVortex regulator VR-180
924, 202, 220, 14tableThrottle penstock DN 150
1024, 218, 220, 14tableSetpoint orifice plate
1124, 236, 220, 14textNet £3,020.00
1224, 252, 220, 14textVAT £604.00
1324, 268, 220, 16textTotal £3,624.00

Cited answer

Ask the page
What did the vortex regulators cost?
Two VR-180 units, £1,840.00. That figure is the amount cell, not a line of prose.

page 1 table row 1 · cell 3

Folder run
FileReadersStatus
chamber-invoice.pngtext, layout, tabledone
penstock-note.pdftext, layoutqueued
orifice-sketch.pngtextwaiting

How it works

  1. Hand a page image or a PDF to the document reading tool, RAGFlow.
  2. In text mode, return each line with its words and where they sit on the page.
  3. In layout mode, mark areas such as title, figure and table.
  4. In table mode, recover rows and cells instead of a single paragraph.
  5. Save marked-up images and plain text for review, or pass them on to search.

Pipeline

flowchart LR
  A["Page image"] --> B["Text reader"]
  A --> C["Layout reader"]
  A --> D["Table reader"]
  B --> E["Words and boxes"]
  C --> F["Region labels"]
  D --> G["Rows and cells"]
  E --> H["Annotated page"]
  G --> H