We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

The numbered/lettered list is spaced incorrectly

File converted = File.createTempFile("aspdf-", ".pdf");
Document doc = new Document("C:\\tmp\\TestFile.docx");
doc.getChildNodes(NodeType.COMMENT, true).clear();
File dotdoc = File.createTempFile("aspdf-", ".doc");
doc.save(dotdoc.getAbsolutePath(), SaveFormat.DOC);
doc = new Document(dotdoc.getAbsolutePath());
doc.save(converted.getAbsolutePath(), saveOptions);

The converted file shows that the numbered/lettered list is spaced incorrectly.

Hi Will,

Thanks for your inquiry. Please note that Aspose.Words mimics the same behavior as MS Word does. If you convert your document to Doc file format using MS Word, you will get the same output.

In your case, I suggest you please set the TrailingCharacter of list level as Space using ListLevel.TrailingCharacter property. Please use the following code example to achieve the required output.

Hope this helps you. Please let us know if you have any more queries.

Document doc = new Document(MyDir + "TestFile.docx");
for (Paragraph para : (Iterable)doc.getChildNodes(NodeType.PARAGRAPH, true))
{
    if (para.isListItem())
    {
        para.getListFormat().getList().getListLevels().get(para.getListFormat().getListLevelNumber()).setTrailingCharacter(ListTrailingCharacter.SPACE);
    }
}
doc.save(MyDir + "Out.doc");