-
Notifications
You must be signed in to change notification settings - Fork 556
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
Is it possible to ignore missing embedded references in malformed .docx documents? #1916
Comments
Hi @XomkaEzWin my apologises for not replying on closed issue but I didn't get notified about your comment probably because the issue was closed. |
Hi @mkaszewiak thanks a lot for your reply and the helpful link! We're looking into the option of removing relationships, but simply clearing all of them wouldn't work for our case — we need to preserve valid ones. Would it be possible to identify only the problematic relationships somehow, so that we could remove just those? |
Hi @XomkaEzWin You might consider using other libraries to unzip the package, manually remove the unwanted relationships from the document.rels.xml file, and then re-zip the package. However, this approach involves a significant amount of extra code. We can discuss your query internally as a potential feature request, but we cannot commit to anything at this time. This may not be achievable or could require extensive redesign, and it may not be delivered anytime soon. Best regards, Mariusz |
Hi @mkaszewiak . Thank you again! |
Hi, I'm following up on my previous issue: [#1912] where I reported a problem with a .docx file that includes broken references in document.xml.rels like:
I was wondering:
Is there any built-in way to ignore such missing relationships or gracefully handle them?
Could someone from the team take a look at the previous issue and advise on the best practice for handling these cases?
When I manually remove the invalid entries, everything works fine, but I'm hoping for a cleaner or automated approach, since I might have to process many such files.
Thanks in advance!
The text was updated successfully, but these errors were encountered: