I am getting issue in formatting of the content in the PDF file while converting RTF to PDF using Save method of Aspose.Words.Document in Aspose.Words dll version 21.6.0
Whereas this was working fine in the earlier version of Aspose.Words.dll
I have noticed that the space characters in between the contents are not aligned uniformly and causing the formatting issue
@yogeshg Thank you for additional information. I have managed t reproduce the problem and logged it as WORDSNET-23168. We will keep you informed and let you know once it is resolved.
Could you please let us know what previous version of Aspose.Words produce the right result on your side?
@yogeshg We have completed analyzing the issue and concluded this is not a bug. Your document has the Balance DBCS characters and DBCS characters option enabled. Word can lay out document with such option differently depending on the installed language:
If only English is installed, enabling and disabling this option does nothing
If Chinese or Japanese language is installed, this option controls the width of space characters making them narrower
In MS Word you observe the behavior for the 1st case. Aspose.Words, however, always respects the Balance DBCS characters and DBCS characters option as MS Word in the 2nd case.
To get the desired rendering output, you can disable the Balance DBCS characters and DBCS characters option:
Document d = new Document(@"in.rtf");
d.CompatibilityOptions.BalanceSingleByteDoubleByteWidth = false;
d.Save("in.pdf");