-
Notifications
You must be signed in to change notification settings - Fork 547
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
Can't open presentations containing 3D objects (MIME type mismatch) #1069
Comments
Hi @andrewmolyneux, thanks for bringing this to our attention. Just to be thorough, can you provide the steps when you created this in PowerPoint? It looks like both forms of this content type are referenced by Office source so I want to make sure there isn't an ambiguity in Office. |
No problem! FYI I'm using PowerPoint 2019, reporting itself as "Version 2110 (Build 14527.20276 Click-to-Run)".
Anecdotally, I've tried using the OXML SDK to open a few PPTX files containing 3D objects, from various sources, and I haven't seen one yet that worked. I might just have been unlucky though 😀 |
@andrewmolyneux Yes, it looks like the correct MIME type should actually be model/gltf-binary based on standards but PowerPoint writes a '.' instead of a '-'. The references to '-' in the greater code are actually for the clipboard format (i.e. copying/pasting) in Office. I'll get the whole story but this will likely be an easy fix. |
Thanks Tom! I hope it will be an easy fix so I can finally update my app to use a reasonably recent version 😄 |
I'm testing the fix. Will submit the PR asap. |
PR #1075 submitted, @sergey-tihon @andrewmolyneux can you give this a test and verify that it resolves this issue for you? |
@tomjebo is there an easy way get binaries from CI to we need to build from source? |
@sergey-tihon until the PR is merged, you will have to use the source branch (my branch in this case) to test. Once merged, you can pick up a CI build (see the README). |
@sergey-tihon PR #1069 has been reworked. it should be the same result but you might want to retest your scenario to verify. I tested with your original repro file. |
This should be in the next release. |
Description
After updating to SDK version 2.14.0 from 2.10.1, I noticed that opening presentations containing 3D objects causes an exception. Error message is similar to "The document cannot be opened because there is an invalid part with an unexpected content type. [Part Uri=/ppt/media/model3d1.glb] [Content Type=model/gltf.binary] [Expected Content Type=model/gltf-binary]."
Information
Repro
Using this test file created with PowerPoint 2019:
3d.pptx
Observed
An exception occurs as shown below:
Expected
Just the string "Opened successfully" written to standard output.
The text was updated successfully, but these errors were encountered: