FIX. RadPdfViewer - throws NullReferenceException in GetPages method of PdfContentManager.
PdfViewer - throws NullReferenceException in GetPages method of PdfContentManager.
Posted on:13 Mar 2015 11:44
We have investigated this case and the document throws an exception as it is not valid according to the PDF format specification. The problem is that at the end of the file, after the %%EOF marker, there are empty bytes, which should not be there. You can see the NUL bytes here (http://goo.gl/OzW3BQ).
Once these bytes are trimmed and the document attempts to open, another issues comes up, and this is an issue with the JPEG decoder, which we have logged here: http://feedback.telerik.com/Project/154/Feedback/Details/149046-fix-radpdfviewer-some-jpeg-images-are-not-rendered-correctly-in-pdfviewer-dct.
As a result of this investigation, I will close this case and also I will attach the file to the case with the JPEG decoder, so when we are working on it, we can make sure we cover the case from your document as well.
Posted on:17 Nov 2014 11:42
Thank you for this document. We will have it in mind when working on this issue. In fact we already have it internally.