PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Error when using PdfDocument.Pages https://forum.pdfsharp.net/viewtopic.php?f=2&t=3767 |
Page 1 of 1 |
Author: | blythgoe [ Tue Apr 17, 2018 7:43 pm ] |
Post subject: | Error when using PdfDocument.Pages |
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? |
Author: | blythgoe [ Tue Apr 17, 2018 7:53 pm ] |
Post subject: | Re: Error when using PdfDocument.Pages |
Looks like this is fixed in 1.50.4845-RC2a |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |