Improve DOCX layout for floating images, drop caps, and footnotes - #2
Improve DOCX layout for floating images, drop caps, and footnotes#2peterwilli wants to merge 2 commits into
Conversation
Add richer paragraph reflow so anchored images render on the correct page, wrap text across nearby paragraphs, and use visible PNG bounds for tighter square wrapping; also add drop-cap/footnote-aware pagination and supporting OOXML parsing updates.
|
Sorry for the long silence on this one. The before and after renders are convincing and I do want the feature. The branch has drifted from main since March, and there are three things that need your hand before it can land.
There is also a conflict on One design note while you are in there. No rush. Give me a shout when it is rebased and I will get to it quickly this time. |

The current library lacks proper render capabilities for images and footnotes. Also added some missing features from the format.
To demonstrate, I used this sample docx: https://filesamples.com/samples/document/docx/sample1.docx
Here is page 5 before the PR:
Here is the same page, but after this PR:
Here is page 7 before this PR:
Here is page 7 after: