Skip to content

Honor extract_drawings for Word table text boxes - #18470

Open
LimbC-C wants to merge 1 commit into
PaddlePaddle:mainfrom
LimbC-C:fix/doc2md-docx-table-drawing-option
Open

LimbC-C wants to merge 1 commit into
PaddlePaddle:mainfrom
LimbC-C:fix/doc2md-docx-table-drawing-option

Conversation

@LimbC-C

@LimbC-C LimbC-C commented Nov 21, 2026

Copy link
Copy Markdown

Fixes #18469.

Pass extract_drawings to DOCX table conversion so disabling text-box extraction also suppresses text boxes anchored in table cells. The default still includes them.

The public API regression saves a Word document with a body text box and a table text box. The original code fails the disabled case and passes the default control. Both pass on python-docx 0.8.11 and 1.2.0 with the fix. The original failing fixture also exports through the public API with output= set. Configured file checks and normal commit hooks passed. Local testing covered DOCX conversion.

If #18436 lands first, its new recursive table call should forward this same option when integrating the two changes.

AI-assisted implementation and testing with Codex.

This branch has not been deployed

No deployments
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.

[third-party] doc2md ignores extract_drawings for DOCX table text boxes

1 participant