I am processing PCL files, but need to handle potential bad input files. Creating a document normally raises the error "Incorect file format."
But, doing the same with the LoadOptions never returns. It just hangs. How can I handle this?
This raises the error Incorect file format, as is appropriate.
Aspose.Pdf.Document doc = new Aspose.Pdf.Document("c:\smallTextFile.txt");
This never returns.
Aspose.Pdf.LoadOptions loadopt = new Aspose.Pdf.PclLoadOptions();
Aspose.Pdf.Document doc = new Aspose.Pdf.Document("c:\smallTextFile.txt", loadopt);