Media References are removed
See original GitHub issueHi I encountered the following issue while using the OpenXML SDK:
Description I opened the attached file with the OpenXML SDK and saved it using a different name. If I try to open the saved file Power Point reports that the file is broken and that it can try to repair it. After repairing the document does not contain the video which was originally in the presentation.
Information
- .NET Target: .NET Core
- DocumentFormat.OpenXml Version: 2.13.0-beta2
Repro
Use the following code with the attached file and try to open the saved pptx file.
var ppt = PresentationDocument.Open("source.pptx", false);
ppt.SaveAs("saved.pptx");
Observed
The saved file is broken and has to be repaired. The repaired file does not contain the video anymore. Somehow the OpenXML SDK removes all the media references contained in the pptx file.
Expected
A valid pptx file that is identical to the original document.
I would also be willing to help working on a fix if someone could provide me a starting point why/where the references are removed.
Thanks and kind regards, Lars
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (10 by maintainers)
@twsouthwick can this issue be closed? Somehow my changes have been merged in June last year already (https://github.com/OfficeDev/Open-XML-SDK/pull/934)
@tomjebo Can you take a look to verify this change makes sense?