Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu Dec 22, 2016 3:49 pm

Hi support,

We're using your component for quite a while now. Every now and then, some pdf files fail to load correctly, and trigger an exception. We are using the latest stable (3.8.102) I have sent some sample files, together with a test program to your support e-mail box (Support@e-iceblue.com). Can you provide us with a fix for these issues?
The exceptions we get are:
System.ArgumentNullException - System.ArgumentNullException: Value cannot be null.
Parameter name: dictionary
at sprᥠ..ctor(sprᥠ A_0)
at sprᲆ..ctor(spr᧔ A_0, sprᥠ A_1)
at spr᧔.ᜄ()
at spr᧔.ᜁ(Stream A_0)
at spr᧔..ctor(Stream A_0, Boolean A_1)
at Spire.Pdf.PdfDocument..ctor(Byte[] bytes)

System.NullReferenceException - System.NullReferenceException: Object reference not set to an instance of an object.
at spr᰿.ᜀ(sprᦔ A_0)
at spr᰿.ᜄ(sprᦔ A_0)
at sprᵷ.ᜂ()
at sprᵷ.ᜀ()
at sprᵷ.ᜅ()
at spr᰿.ᜄ(sprᦔ A_0)
at Spire.Pdf.PdfPageBase.᜕()
at Spire.Pdf.PdfPageWidget..ctor(PdfDocumentBase A_0, spr᰿ A_1, sprᥠ A_2)
at Spire.Pdf.Widget.PdfPageCollection.ᜄ(sprᥠ A_0)
at spr᰿.ᜀ(sprᦔ A_0)
at spr᰿.ᜄ(sprᦔ A_0)
at sprᵷ.ᜂ()
at sprᵷ.ᜀ()
at sprᵷ.ᜅ()
at spr᰿.ᜄ(sprᦔ A_0)
at Spire.Pdf.Widget.PdfPageCollection.ᜀ(sprᥠ A_0, Int32 A_1, Int32& A_2, Int32& A_3)
at Spire.Pdf.Widget.PdfPageCollection.ᜀ(Int32 A_0, Int32& A_1, Boolean A_2)
at Spire.Pdf.Widget.PdfPageCollection.ᜀ(Int32 A_0)
at Spire.Pdf.Widget.PdfPageCollection.get_Item(Int32 index)
at spr᧔.ᜁ(Boolean A_0)
at spr᧔.ᜋ()
at Spire.Pdf.PdfDocument.Dispose()

Spire.Pdf.Exceptions.PdfException - Spire.Pdf.Exceptions.PdfException: Badly formed dictionary next should be a name. before 809
at spr⏄.ᜀ(ErrorType A_0, String A_1)
at spr⏄.ᜀ()
at spr⏄.ᜁ()
at spr⏄.ᜑ()
at spr⏄.ᜐ()
at spr⏄.ᜁ(Int64 A_0)
at spr៝.ᜀ(sprᦔ A_0)
at spr᰿.ᜄ(sprᦔ A_0)
at sprᵷ.ᜂ()
at sprᵷ.ᜀ()
at sprᵷ.ᜅ()
at spr᰿.ᜄ(sprᦔ A_0)
at Spire.Pdf.Bookmarks.PdfBookmarkCollection.ᜀ(PdfBookmarkCollection A_0)
at Spire.Pdf.Bookmarks.PdfBookmarkCollection.ᜈ()
at Spire.Pdf.Bookmarks.PdfBookmarkWidget.get_List()
at Spire.Pdf.Bookmarks.PdfBookmarkCollection.get_Count()
at Spire.Pdf.PdfDocumentBase.ᜣ()
at Spire.Pdf.PdfDocumentBase.ImportPageRange(PdfDocumentBase ldDoc, Int32 startIndex, Int32 endIndex)
at Spire.Pdf.PdfDocument.InsertPageRange(PdfDocument doc, Int32 startIndex, Int32 endIndex)

System.ArgumentNullException - System.ArgumentNullException: Value cannot be null.
Parameter name: dictionary
at sprᥠ..ctor(sprᥠ A_0)
at sprᲆ..ctor(spr᧔ A_0, sprᥠ A_1)
at spr᧔.ᜄ()
at spr᧔.ᜁ(Stream A_0)
at spr᧔..ctor(Stream A_0, Boolean A_1)
at Spire.Pdf.PdfDocument..ctor(Byte[] bytes)

sikke.kooistra@avanade.com
 
Posts: 33
Joined: Fri Jun 27, 2014 1:39 pm

Fri Dec 23, 2016 6:04 am

Dear Sikke,

Thanks for your detailed information.
I have reproduced your issues and posted them to our Dev team. Once there is any good news, we will update you immediately.
Sorry for the inconvenience caused.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Thu Jan 12, 2017 12:40 pm

Hi Nina,

Have you made any progress on this issue? We are really waiting for a fix.

Kind regards,

Sikke

sikke.kooistra@avanade.com
 
Posts: 33
Joined: Fri Jun 27, 2014 1:39 pm

Fri Jan 13, 2017 2:11 am

Hello sikke,

I just got an information from our Dev team that your issues have been fixed. Yet we need some time to test the new version. You will be informed when the new version is available. Thanks for your patience.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Tue Jan 17, 2017 7:42 am

Dear sikke,

Now the newest Spire.PDF Pack(Hot Fix) Version:3.8.152 has been released, which contains the fix about your issues. Please download it to have a try, and if there is any problems, welcome to get it back to us.

Best wishes,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Tue Jan 17, 2017 10:45 am

Hi Nina,

Thank you for the update. Can you make the hotfix available as a nuget package?

Regards,

Sikke Kooistra

sikke.kooistra@avanade.com
 
Posts: 33
Joined: Fri Jun 27, 2014 1:39 pm

Wed Jan 18, 2017 2:39 am

Hello,

Yes, it is also available as a nuget package.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Mon Jan 23, 2017 8:56 am

Hi Nina,

Just tested the hotfix, all error pdf's are correctly loaded and saved now. I will do a more thorough test and will gat back with the results.

Regards,

Sikke

sikke.kooistra@avanade.com
 
Posts: 33
Joined: Fri Jun 27, 2014 1:39 pm

Mon Jan 23, 2017 9:13 am

Dear sikke,

Thanks for your feedback.
Please feel free to contact us if you have any futher questions. We are here to help you.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Return to Spire.PDF