Open Azkarell opened 5 years ago
I spent some time learning how pdf works and i found that the pdf seems to be broken, because in one obj
/Info 3 0 R
is defined as a reference but the whole pdf does not inculde a
3 0 obj
how to handle such cases is up to you but since most readers can still open it. pdfsharp should in my opinion at least not crash.
Hi, I recently had to write a simple Application to merge some PDFs. In most cases PDFSharp worked like a charm but I had one PDF where PDFReader.Open threw a NullReferenceException.
Sadly I can't give you the pdf. But i will try to reproduce the error with other pdfs.
my workaround was: instead of
i used:
but I'm really not sure if that is a good idea :)