question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Media References are removed

See original GitHub issue

Hi 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");

source.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:closed
  • Created 2 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
lklein53commented, Dec 22, 2022

@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)

0reactions
twsouthwickcommented, Jun 24, 2021

@tomjebo Can you take a look to verify this change makes sense?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Removing file references for clips with deleted media
Hi,. I am trying to determine if there is a programmatic way to remove file references for media that has been deleted.
Read more >
Personal Content and Product Policies, and Removal ...
We'll check the content you report to us to see if it should be removed from ... Remove explicit or intimate personal images...
Read more >
Citing a link that was removed? - citations
This could be a problem from a copyright perspective, but if the original material truly is abandoned, then you've got nothing to worry...
Read more >
Missing reference information - APA Style
This page shows the basic structure of an APA Style reference to a published ... social media livestreams (or deleted and unarchived social...
Read more >
The Undertaker Removes All WWE References From ...
One of WWE's most legendary stars, The Undertaker, has removed all references to being a WWE star from all of his social media...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found