'The document appears to be corrupted and cannot be loaded

enter image description here

this is my aspose version.

        <dependency>
            <groupId>com.aspose</groupId>
            <artifactId>aspose-words</artifactId>
            <version>20.4</version>
        </dependency>

not every document will appear this exception when i call
new Document("document file path");



Solution 1:[1]

Such exception occurs if the document is corrupted. You should report such problems in Aspose.Words forum and attach the problematic document there.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Alexey Noskov