Hi, Support:
Is there any method to detect a document that is messed-up? In another word, the content of the document is all garbled, and non-readable.
Hope your help!
@ducaisoft Do you mean the document is messed-up upon loading or saving by Aspose.Words? This only can occur if the document contains some unsupported features or broken content. You can use IWarningCallback to get notification if Aspose.Words encounters something that causes problems upon loading, saving or processing the document.
No. My meaning is that:
if a document with its content has been messed-up can be opened by MS Word normally, but after opened, all the characters displayed are unreadable and unrecognizable by human, not the document is messed-up upon loading or saving by Aspose.Words.
Please refer to this demo document whose contents are messed-up.
Demo-Messed-up.docx (82.0 KB)
@ducaisoft Thank you for additional information. Unfortunately, there is no built in way to detect such document. From Aspose.Words perspective it is a valid DOCX document. To detect the document is not human-readable, you should analyze the contents of the document. Aspose.Words can be used in this algorithm as an instrument for reading content from the document, but the content itself should be analyzed by your code.