On some pdf files that I'm working with, I will get an error:
System.NullReferenceException: Object reference not set to an instance of an object. at PdfSharp.Pdf.PdfPages.GetKids(PdfReference iref, InheritedValues values, PdfDictionary parent) at PdfSharp.Pdf.PdfPages.FlattenPageTree() at PdfSharp.Pdf.Advanced.PdfCatalog.get_Pages() at PdfSharp.Pdf.PdfDocument.get_Pages() at [My Code... Foreach (PdfPage page in myPdfDOcument.Pages){...}]
I'm not sure why the pages becomes null on these. Any ideas?
|