Spacing issue observed with new version of Aspose dll version V23

Hi,

We have recently updated aspose dll version from V14 to V23. We are seeing issues in the forms related to removal of spaces when we reference to newer version of dll into the solution.

For example: If the word document contains a merge field and the value of the merge field returns as " Demo " then while converting this word document to PDF, Aspose v23 version is removing the space present at the beginning and at the end of the text and displaying it as “Demo” on the output PDF.
While in Aspose v14 version, this was displaying as " Demo " with all the spaces that are present on the value of the merge field in the word document.

@ShubhamR

Looks like your inquiry is related to Aspose.Words. We are moving it to respective forum category where you will be assisted shortly.

@ShubhamR Could you please attach sample template, problematic and expected output documents along with simple code that will allow us to reproduce the problem on our side? We will check the issue and provide you more information.

have you tried using MailMerge.TrimWhitespaces property?