I have two documents, one was created by me using aspose (new Document().save()), and the other is created by me through Office. I compared the font, paragraph settings, and other settings of the same document, and the numbers and letters typed are exactly the same. However, the spacing width of the spaces I typed is different. Please help answer where the settings are.
different.zip (27.1 KB)
@zhengkai The difference is BalanceSingleByteDoubleByteWidth
compatibility option:
Document doc = new Document("C:\\Temp\\aspose.doc");
doc.getCompatibilityOptions().setBalanceSingleByteDoubleByteWidth(true);
doc.save("C:\\Temp\\out.doc");
out.zip (2.0 KB)