File Size of Text is Increased after re-saving DOC using .NET

We are opening and saving documents without making any changes, we found differences in size and content (using ASPOSE.Words’ compare feature, see test.doc vs test.doc.open_save.doc) sometimes the size is increased by more than 50% (see test.doc vs test.doc.open_save.doc) other times the file size decreases (test.xls and test.xlsx)

Code example:
Document document = new Document(path);
document.Save(path + “.open_save” + Path.GetExtension(path));

We need the file content and size not to be changed, is this possible?

files.zip (1.3 MB)

@okapii

We have logged this problem in our issue tracking system as WORDSNET-22122. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

A post was split to a new topic: File Size document is Increased after re-saving DOC using .NET

@okapii

Please note that output document produced by Aspose.Words is bigger because we always write Unicode (in shorts it is two byte encoding) text. The Source document is ANSI (single byte encoding) encoding.

Could you please share if you face any issue with document’s content difference?

Thank you for the answer.

Can we choose to use single byte encoding when saving the document to not face this problem?

@okapii and I are working together on this.

@okapii

Unfortunately, no. However, we will check if there is any possibility to implement it.

Thank you Tahir,

This is crucial for our project and the purchase of the license in our case depends on this.
We cannot allow for file size changes (up to 50%) even though the content wasn’t changed.

@cscheuermann

Unfortunately, this feature is not supported by Aspose.Words. We have logged new feature request as WORDSNET-22143 in our issue tracking system. You will be notified via this forum thread once this feature is available. We apologize for your inconvenience.

Thank you Tahir,

Is there an ETA for this?

Thanks!

@cscheuermann

We try our best to deal with every customer request in a timely fashion, we unfortunately cannot guarantee a delivery date to every customer issue. We work on issues on a first come, first served basis. We feel this is the fairest and most appropriate way to satisfy the needs of the majority of our customers.

Currently, your issue is pending for analysis and is in the queue. Once we complete the analysis of your issue, we will then be able to provide you an estimate.

You reported this issue in free support forum and it will be treated with normal priority. To speed up the progress of issue’s resolution, we suggest you please check our paid support policies from following link.
Paid Support Policies