About Services Tools Blog Contact us

Word Text, Tables and Comments

Pulls paragraphs, tables and review comments out of a Microsoft Word file and shows which table cell each comment is attached to, without opening Word.

  • Document Understanding & OCR
  • Professional services
  • Tool
  • Productised
  • Local/private
  • 2026

The problem

Review packs arrive as Microsoft Word files. Copy and paste flattens the tables and drops the comments. So a note about a figure ends up floating with no cell to apply it to.

What it does

You give it a Word file and it reads the contents directly. Paragraphs keep their breaks and each table row stays on one line. Every comment is printed with the row and cell it points at.

Outcomes

  • Tables come out as aligned rows and not a jumbled paste.
  • Each review note stays attached to the figure it refers to.
  • Microsoft Word does not have to be open on the machine.
  • The same extract can feed a later edit or check.

Simplified mockup

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

Engagement note

Quay & Hart

Engagement note

North Wharf Trust · March 2026

We will advise on the quay extension at North Wharf. The fee below covers the work described and excludes disbursements unless a line says otherwise.

MatterHoursFee
Site survey6£1,450
Planning note12£3,200
Hearing bundle8£2,100

Two comments, still on their cells.

Row 2, column 3 · A. Okonkwo Confirm this excludes disbursements.
Row 3, column 2 · L. Pembroke These hours assume one counsel, not two.
Extract
north-wharf-note.docx staged

Cell anchors

2 notes
Row 2, column 3
£1,450
Site survey fee · A. Okonkwo
Row 3, column 2
12 hours
Planning note · L. Pembroke
Comment to cell
AnchorCellComment
ROW 2 COL 3£1,450Confirm this excludes disbursements.
ROW 3 COL 212These hours assume one counsel, not two.

The header is row 1, so the first fee sits on row 2. A paste would have dropped both notes.

north-wharf-note.docx

Opened as a package, not in a word processor
PartUsed for
word/document.xmlParagraphs and the fee table
word/comments.xmlThe two review notes
word/commentsExtended.xmlLeft unread. Anchors are in the document
Anchor in the document XML
<w:tc>
  <w:p>
    <w:commentRangeStart w:id="0"/>
    <w:r><w:t>£1,450</w:t></w:r>
    <w:commentRangeEnd w:id="0"/>
  </w:p>
</w:tc>

How it works

  1. Unpack the Microsoft Word file and read its main text.
  2. Print paragraph text with tabs and line breaks kept.
  3. Join table cells so each row stays on one line.
  4. Read the comments from the file.
  5. Match each comment to the table row and cell it is attached to.

Pipeline

flowchart LR
  A["Microsoft Word file"] --> B["Open package"]
  B --> C["Paragraphs"]
  B --> D["Table rows"]
  B --> E["Comments"]
  E --> F["Cell anchors"]
  C --> G["Plain text"]
  D --> G
  F --> G