Theme part missing from Flat XML when saved with Aspose.Words.NET


Dll version: 16.10.1

This is not an urgent issue for us as a workaround has already been applied.

The subject pretty much sums it up the pkg:part /word/theme/theme1.xml is missing when saved with Aspose.Words, but if you open the same xml document in MS Word add a space and save, it is added.

This is what the missing part looks like:

<pkg:part pkg:name="/word/theme/theme1.xml" pkg:contentType="application/vnd.openxmlformats-officedocument.theme+xml">

To duplicate:

  1. Open the attached document and save as xml.
  2. Open the xml and search for the text /word/theme/theme1.xml which should be present.
  3. Use the following to save the document as xml using Aspose.Words
Document doc = new Document(@"C:\temp\sample.doc");
OoxmlSaveOptions so = new OoxmlSaveOptions(SaveFormat.FlatOpc);
so.Compliance = OoxmlCompliance.Iso29500_2008_Transitional;
  1. Open the xml and search for the text /word/theme/theme1.xml which should be present but is missing.
  2. Open the xml created using the Aspose.Words component using MS Word, add a space or carriage return and save.
  3. Open the xml and search for the text /word/theme/theme1.xml which should be present.



Hi Alex,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-14359. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-14359) have been fixed in this Aspose.Words for .NET 18.7 update and this Aspose.Words for Java 18.7 update.