Skip to content

Skip null and internal bookmarks links when loading document #1498

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michaelromagne
Copy link

@michaelromagne michaelromagne commented Jun 22, 2025

This PR aims at fixing a recurring issue when loading docx files that have elements pointing to an internal bookmark or a target that is NULL.

Fixed issues with this PR:

Docling issue as well (and other projects using docx)

Still, there is also an issue with customXML missing elements here : KeyError: "There is no item named 'customXML/item5.xml' in the archive" that is not taken care of, I'll don't know if adding another edge case is a good idea, or if you have a better approach in mind.

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