Skip to content

Improve DOCX layout for floating images, drop caps, and footnotes#2

Open
peterwilli wants to merge 2 commits into
tensorbee:mainfrom
ISAWarden:fix/document-rendering
Open

Improve DOCX layout for floating images, drop caps, and footnotes#2
peterwilli wants to merge 2 commits into
tensorbee:mainfrom
ISAWarden:fix/document-rendering

Conversation

@peterwilli

Copy link
Copy Markdown

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:

image

Here is the same page, but after this PR:

page-5

Here is page 7 before this PR:

image

Here is page 7 after:

page-7

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.
@peterwilli

Copy link
Copy Markdown
Author
page-5

Fixed the headers now as well

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