{
  "id": 23654178,
  "title": "Reconstructing Word .docx OpenXML Paragraphs and Multi-Column Tables From Fixed-Coordinate PDF Glyphs",
  "url": "https://urgent.news/2026/12/05/reconstructing-word-docx-openxml-paragraphs-and-multi-column-tables",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-05T16:28:06.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/karanyadav97/reconstructing-word-docx-openxml-paragraphs-and-multi-column-tables-from-fixed-coordinate-pdf-3cg4"
  },
  "original_language": null,
  "account": "PDF files lack structured paragraphs, table cells, or headings without additional metadata. When text spans overlap, converters often wrap glyphs in Word text boxes for visual accuracy, but this leads to issues when editors add content. To create editable OpenXML (.docx) files directly in a browser, a deterministic geometric reconstruction pipeline is needed.\n\nFirst, glyph spans are extracted with normalized coordinates in PDF units (1 pt = 1/72 in) that are translated to top-down page coordinates. Then, for multi-column pages, vertical whitespace gutters are detected to prevent line merging. Column gutters are identified through 1 pt horizontal bins and occupancy accumulation, followed by sorting reading regions.\n\nNext, y-baseline lines are merged when their vertical difference is within 25% of the cap height. Word gaps are handled by joining fragments within 0.18 * font size, and inserting spaces for gaps in between. Paragraphs are formed by joining lines, unless broken by structural elements like paragraph breaks or list markers.\n\nTables are reconstructed from PDF vector rulings or borderless gutter patterns. Vector-rules define exact grid coordinates, while borderless tables use repeated X-gutter centroids to infer column structures. The resulting table elements are packaged in a strict ZIP archive containing necessary XML files, ensuring compatibility across different word processing software.",
  "summary": "\\ Canonical Engineering Monograph: https://nandai.org/blog/reconstructing-docx-openxml-paragraphs-tables-from-pdf-glyphs · Zero-Upload Local Converter: nandai.org/convert/pdf-to-word-docx An untagged PDF file ( ISO 32000-2 ) does not contain paragraphs, table cells, or heading nodes. Unless the producer embedded a /StructTreeRoot accessibility tree, the page content stream stores low-level…",
  "summary_source": "publisher",
  "key_points": [
    "Glyph spans extracted with normalized PDF coordinates (1 pt = 1/72 in)",
    "Multi-column pages identified through vertical gutters and horizontal bins",
    "Tables reconstructed from vector rulings or inferred column structures"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "outlets_capped": false,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}