-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Link in picture breaks NPOI template edit #1010
Comments
Can you share the original document? |
Stop creating similar issues. Let's discuss in this thread. And I've closed #1009 as it's duplicate. |
@tonyqus Sorry, they seemed like different issues given one was about the link breaking picture in a template doc, and the other was about a picture in a table that doesn't persist after saving. So my thinking was that hyperlink in picture corrupting doc=/= picture in table not persisting since they're two completely different behaviors and use cases. I've created a mini demo repo with the documents. I have one document called working just as a demonstration that the code does work here and I have TestLinkBreak.docx as an example. There is a folder in NPOITest called TestDocs with the word documents. Output documents will be written to the bin\net6.0 dir. I'm going to add additional documents here as a simple demonstration |
I read your code. I don't think you can simply merge two docx with binary data. It's Office file instead of plain text.
|
Putting a link in a picture, loading the document into NPOI, and then saving the document corrupts the word doc
The text was updated successfully, but these errors were encountered: