I have a document which I want to manipulate using Aspose.Words.NET.
I noticed that after saving the document, one of the styles have been applied to all the table cells and all the paragraphs in the footer. I get the same result if there is no other operation, just opening and saving the document.
var doc = new Aspose.Words.Document(@"C:\test\doc.docx");
doc.Save(@"C:\test\doc_resaved.docx");
Before:
image.png (17.6 KB)
image.png (8.7 KB)
After:
image.png (18.5 KB)
image.png (8.2 KB)
doc.docx (9.8 KB)
doc_resaved.docx (15.1 KB)
I also have a rectangle on the first page of the same document as a Fallback:
<mc:AlternateContent xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
<mc:Choice xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" Requires="wps">
<!-- ... -->
</mc:Choice>
<mc:Fallback>
<w:pict>
<v:rect id="Rectangle 1" style="position:absolute;margin-left:-2.25pt;margin-top:24pt;width:265.5pt;height:106.5pt;z-index:251659264;visibility:visible;mso-wrap-style:square;mso-wrap-distance-left:9pt;mso-wrap-distance-top:0;mso-wrap-distance-right:9pt;mso-wrap-distance-bottom:0;mso-position-horizontal:absolute;mso-position-horizontal-relative:text;mso-position-vertical:absolute;mso-position-vertical-relative:text;v-text-anchor:middle" o:spid="_x0000_s1026" fillcolor="#4bc3d5" stroked="false" strokeweight="1pt" w14:anchorId="6EF24B1E" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml"/>
</w:pict>
</mc:Fallback>
</mc:AlternateContent>
After opening and saving the document with Aspose.Words, the rectangle appears on the first page, but it should not:
image.png (4.6 KB)