We use Aspose for converting MS Word document to PDF.
When I try to convert the attached document I get the “The document appears to be corrupted and cannot be loaded. —> System.NullReferenceException:” exception.
The source code I use is pretty simple and obvious:
var doc = new Document(“C:\GreenSmoke.DOCX”);
var pdf = doc.Save(“C:\GreenSmoke.pdf”, SaveFormat.Pdf);
The exception occurs in the first line when loading the document.
The document itself looks good in Word.
We use Aspose.Word for .NET version 188.8.131.52.