We are using Aspose licensed version 18.10.0.0 to generate PDF of .docx file and also to perform some cleanup like removing Field codes and Smart tags.
Conversion of file stream into Aspose object is resulting in some unwanted changes:
-
Run style is getting changed from FootnoteReference to DefaultParagraphFont
-
footnoteReference id is getting changed from 1 to 2
Which is resulting in content change and wrong footnote reference,
Below is document XML before processing through Aspose and after processing through Aspose.
Before processing through Aspose:
<w:r w:rsidRPr="00F11784">
<w:rPr>
<w:sz w:val="20"/>
<w:szCs w:val="20"/>
</w:rPr>
<w:t>Roszaini Kadir</w:t>
</w:r>
<w:r w:rsidRPr="00F11784">
<w:rPr>
<w:rStyle w:val="FootnoteReference"/>
<w:sz w:val="20"/>
<w:szCs w:val="20"/>
</w:rPr>
<w:footnoteReference w:id="1" w:customMarkFollows="1"/>
<w:sym w:char="F02A" w:font="Symbol"/>
</w:r>
<w:r w:rsidRPr="00457608" w:rsidR="001C5E1B">
<w:rPr>
<w:sz w:val="20"/>
<w:szCs w:val="20"/>
</w:rPr>
<w:t xml:space="preserve">, </w:t>
</w:r>
After processed through Aspose:
<w:r xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
<w:rPr>
<w:sz w:val="20"/>
<w:szCs w:val="20"/>
</w:rPr>
<w:t>Roszaini Kadir</w:t>
</w:r>
<w:r xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
<w:rPr>
<w:rStyle w:val="DefaultParagraphFont"/>
<w:sz w:val="20"/><w:szCs w:val="20"/>
<w:vertAlign w:val="superscript"/>
</w:rPr>
<w:footnoteReference w:id="2" w:customMarkFollows="1"/>
</w:r>
<w:r xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
<w:rPr>
<w:rStyle w:val="DefaultParagraphFont"/>
<w:rFonts w:hAnsi="Symbol" w:ascii="Symbol"/>
<w:sz w:val="20"/>
<w:szCs w:val="20"/>
<w:vertAlign w:val="superscript"/>
</w:rPr>
<w:sym w:char="F02A" w:font="Symbol"/>
</w:r>