Unexpected indent is coming for doc output

We have an issue with the external stylesheet(.dotx) in doc format output. In doc format output I am getting the unexpected indent.But the output is coming perfectly in .docx format. I am using Aspose words 17.7.

    Document doc = new Document("D:\\StyleSheetForRPE.dotx");
	DocumentBuilder docBuilder = new DocumentBuilder(doc);
	String text  = "Hello";
	docBuilder.getParagraphFormat().setStyleName("Heading 1");
	String baseFolder = System.getProperty("java.io.tmpdir");
	String unique = UUID.randomUUID().toString().replaceAll(" ", "_");
	String docpath = baseFolder + "Aspose-" + unique + "_" + BuildVersionInfo.getVersion(); 
	doc.save(docpath + ".doc"); 
	doc.save(docpath + ".docx"); 

I have attached .doc , .docx , outputDifference.png and dotx file.
Check Style Heading 1 in both outputs.
For docx - Hedaing 1: LEFT : 0
For Doc - Heading 1: left indent is 0.03 because of that it is giving indent.
LEFT : 0.03

Files.zip (50.0 KB)


Thanks for your inquiry. We have tested the scenario and noticed the indent issue in DOC output. We have logged a ticket WORDSNET-15813 in our issue tracking system for further investigation and rectification. We will notify you as soon as it is resolved.

We are sorry for the inconvenience.


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