Parse document exception

File: http://www.bafin.de/SharedDocs/Downloads/DE/Befreiungsentscheidung/NCR.doc?__blob=publicationFile

Code:

public static void Convert(string inputFileName, string outputFileName)
{
    var d = new Document(inputFileName);
    d.RemoveMacros();
    d.Save(outputFileName, SaveFormat.Docx);
}
Unhandled Exception: System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'.
   at Aspose.Words.Document.(Stream , LoadOptions )
   at Aspose.Words.Document.(Stream , LoadOptions )
   at Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)
   at Aspose.Words.Document..ctor(String fileName)

Aspose.Words 18.12

@sergey.azarkevich

Thanks for your inquiry. We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-17956 . We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.

@sergey.azarkevich

The issue you have found earlier (filed as WORDSNET-17956 ) has been fixed in this Aspose.Words for .NET 19.1 update.

The issues you have found earlier (filed as WORDSNET-17956) have been fixed in this Aspose.Words for .NET 19.1 update and this Aspose.Words for Java 19.1 update.