|
Rank: Member Groups: Member
Joined: 4/27/2018 Posts: 17
|
Hello,
Occasionally our calls to the EO.PDF.PdfDocument(Stream stream) constructor will throw a null reference error. This does not happen in every call. It only seems to happen when images are being merged into the PDF stream. Not every image triggers this error. Currently we do not have a sample image we can share due to PII restrictions.
Stack trace: System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of an object. Source=EO.Pdf StackTrace: at EO.Internal.nmba.hoxn(PdfDocumentSecurity cwr) at EO.Internal.nmba.rxxw(Boolean cwo, Boolean cwp, PdfDocumentSecurity cwq) at EO.Internal.nmap.xhkq(Stream csb, Boolean csc, Boolean csd) at EO.Internal.nmap..ctor(Stream cro, PdfDocumentSecurity crp, Boolean crq, Boolean crr) at EO.Internal.nmap..ctor(Stream crs, PdfDocumentSecurity crt) at EO.Pdf.PdfDocument..ctor(Stream stream) at [Our code redacted]
Current version: 20.3.63
Google Chrome is able to render the input stream for the EO.Pdf constructor as a PDF document.
Thank you
|
|
Rank: Member Groups: Member
Joined: 4/27/2018 Posts: 17
|
Our development team was able to reproduce the error without using PII data and images. Is there a way I can securely upload these files for the EO team?
Thank you
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
You can select Support -> Contact Us from our main menu to upload the file securely to our server.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 4/27/2018 Posts: 17
|
Test files have been uploaded.
Thank you
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
We have looked into the file. The root of the problem is in this file there is a chunk of corrupted data. We will change our code to skip this chunk of data in our next build so that it will still be able to read the file without crashing with an exception.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 4/27/2018 Posts: 17
|
That is great news, thank you. How we will know when the next version is released? Will we be able to pull it from nuget?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Yes. We will reply here again when the new build is available. You will be able to pull it from nuget.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
This is just to let you know that we have posted a new build that should resolve this issue. You can either download the new build from our download page or pull it from nuget.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 4/27/2018 Posts: 17
|
Thank you, we have downloaded the latest version (21.2.47) and testing is going well on our end. We have not been able to reproduce the issue so far.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Great. Thanks for confirming!
|
|