I’m using insertHtml of DocumentBuilder.
The html that was generated was
<p style="text-align: center;">Psdsd<br /> <br /> </p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="http://rack.1.mshcdn.com/media/ZgkyMDEyLzEyLzA0LzEzL2dvb2dsZXNvbHltLjU3OS5qcGcKcAl0aHVtYgk5NTB4NTM0IwplCWpwZw/954e5b7c/3c4/google-s-olympics-doodles-the-inside-story-88c9992489.jpg" alt="" width="160" height="56" /></p>
<p style="text-align: center;"> </p>
<p style="text-align: center;"><br /><br /></p>
<p style="text-align: center;"> </p>
<p style="text-align: center;"> </p>
<p> </p>
<p style="text-align: center;"><br /> <br /> </p>
<p style="text-align: center;">Psdsd</p>
So for this html , doc that was generated contain image left aligned
but if p tag prior to img tag had style as "style="text-align: center;"
then it works fine
is this known issue or bug from your side?
I’m using this Version: 13.2.0 of Aspose.Words.jdk15.jar