I am currently evaluating the .net PDF ( V8.0.0) component with a view to using it for server-side conversions of PDF to HTML. I have also been looking into the Word component which is working really well. However, the PDF save ( or validate ) method always throws this errors (many times):
A first chance exception of type 'System.IO.EndOfStreamException' occurred in mscorlib.dll
at System.IO.BinaryReader.ReadByte() at System.IO.BinaryReader.ReadByte()
var pdfLicense = new Aspose.Pdf.License();
Document doc = new Aspose.Pdf.Document(@"c:\tmp\pdfconvert\test.pdf");
For a large pdf this is thrown many times and obviously slows down the conversion process. I have tried with all of the versions supplied but get the same error.
The only PDF that does not generate the errors is a blank pdf document created from within Aspose.PDF itself E.g:
var doc1 = new Aspose.pdf.Document();
doc1.Save(@"c:\tmp\convertTest\saved.pdf");var doc1 = new Aspose.pdf.Document();
I am sure I am missing something really obvious so I would appreciate any pointers.