-
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
Exception with SmartArt diagrams #1840
Comments
@manfromarce, I verified that
It is not listed in the ISO 29500-1 standard, it is an extension part in MS-ODRAWXML and therefore this should be the correct content type for a drawing part with the relationship If I create a diagram in Word latest version, I get this for the drawing part: <Override PartName="/word/diagrams/drawing1.xml" ContentType="application/vnd.ms-office.drawingml.diagramDrawing+xml"/> Which matches the SDK and of course this can be read by the SDK with no exception thrown. Did you create the test document |
I've also checked our Office source and vnd.openxmlformats-officedocument.drawingml.diagramDrawing+xml doesn't show up in the history anywhere so I'm thinking that this probably occurs in other document generators. @manfromarce if you can reproduce this with a specific version of Word them please feel free to comment here and we'll investigate. |
Yes, this occurred with a document created by OnlyOffice. If you think this syntax is not correct I will report the issue to them. |
@manfromarce thanks for responding. I will leave this issue closed as this is likely a problem with OnlyOffice. |
Describe the bug
It seems that few DOCX files can also have the application/vnd.openxmlformats-officedocument.drawingml.diagramDrawing+xml content type for SmartArt diagrams. I don't know if this is allowed in the specification, Word and other editors can open them properly but the Open XML SDK throws the following exception:
To Reproduce
Build and run this sample (a DOCX file which causes the issue is included): ConsoleApp1.zip
Observed behavior
An DocumentFormat.OpenXml.Packaging.OpenXmlPackageException is thrown.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: