When you attempt to open an invalid file as a PDF using Aspose.NET, the message in the exception has a typo. I’ve attached a zip file with an invalid PDF (it’s just a blank file), and if you do something like:
document = new Aspose.Pdf.Document(pathToFile);
then the resulting exception has the message “Incorect file format” - it’s missing an r in “Incorrect”.
This, of course, is a minor issue, but thought I’d let you know, especially as we sometimes present that error message to our end users.
test.zip (114 Bytes)