@shivp Could you please attach your input output and expected output documents here for our reference? We will check the issue and provide you more information.
zip contains input and output sample files expected output should be same as input.
we are saving input file the DB in varbinary(max) format and at the time of download we convert it to byte array and creating aspose Document from same stream and alignment got changed.
@shivp By default upon loading TXT document leading spaces are converted to indents. You can control this behavior by specifying the appropriate property in TxtLoadOptions:
TxtLoadOptions options = new TxtLoadOptions();
options.setTrailingSpacesOptions(TxtTrailingSpacesOptions.PRESERVE);
options.setLeadingSpacesOptions(TxtLeadingSpacesOptions.PRESERVE);
Document doc = new Document("C:\\Temp\\Input sample.txt", options);
doc.save("C:\\Temp\\out.txt");
@shivp Every Aspose license provides a 1-year subscription for free upgrades to any new Aspose.Words version that comes out. Any Aspose.Words version released before the subscription expiry date - you can just download and use it.
If you want to check when your subscription expires, open the license file in Notepad (but take care not to modify and save the license file or it will no longer work) and see the SubscriptionExpiry field.
<SubscriptionExpiry>20220218</SubscriptionExpiry>
It means that you can free upgrade to version of Aspose.Words published before 02/18/2022.