Skip to content

Promote: PDF to DOCX table reconstruction - #272

Merged
slaveofcode merged 2 commits into
mainfrom
develop
Aug 17, 2026
Merged

Promote: PDF to DOCX table reconstruction#272
slaveofcode merged 2 commits into
mainfrom
develop

Conversation

@slaveofcode

Copy link
Copy Markdown
Owner

PDF to Word now reconstructs tables instead of flattening them.

The converter flattened every table row into a paragraph. Now it detects
grid-like regions from the positioned text — rows that split into columns
that line up across ≥2 rows — and emits real Word tables, keeping headings
and paragraphs for the rest. Also fixes pdf.js synthetic whitespace items
merging adjacent cells. Pure reconstructBlocks (segmentsOf, clusterColumns)
unit-tested + a pdf-lib→pdf.js end-to-end regression test.
fix(pdf-to-docx): reconstruct tables instead of flattening them
@slaveofcode
slaveofcode merged commit 177fa1c into main Aug 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant