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.

Mon Jul 12, 2021 9:34 am

When trying to get text from certain document, I always get System.NullReferenceException with following stack info:

System.NullReferenceException: Object reference not set to an instance of an object.
at spr⠚.ᜀ(String A_0, String A_1, Boolean A_2, Boolean A_3)
at sprᮊ.ᜁ()
at sprᮊ..ctor(String A_0, ᜁ A_1, ᜁ A_2, sprᮚ A_3, sprᤷ A_4, sprᮙ A_5, Double A_6, Double A_7, sprᮉ A_8, ᜂ A_9)
at sprᮇ.ᜀ(String A_0, ᜁ A_1, ᜁ A_2, sprᮚ A_3, sprᤷ A_4, sprᮙ A_5, Double A_6, Double A_7, sprᮉ A_8, ᜂ A_9)
at sprᮚ.ᜀ(Int32 A_0, Int32 A_1, spr⠝ A_2, sprᮉ A_3)
at sprᮚ.ᜆ(Int32 A_0, spr⠝ A_1)
at sprᮚ.ᜈ()
at sprᮜ.ᜀ(spr⠞ A_0, sprᝩ A_1)
at sprᮜ.ᜀ()
at sprᮜ..ctor(PdfPageBase A_0, sprᮖ A_1, Boolean A_2)
at sprᮜ..ctor(PdfPageBase A_0, sprᮖ A_1)
at sprᮜ..ctor(PdfPageBase A_0)
at sprᦿ.ᜀ(PdfPageBase A_0)
at Spire.Pdf.PdfPageBase.FindAllText()

Document doesn't seem to be corupted (attached) since Adobe reader opens it correctly with no errors.

bbrodnik
 
Posts: 21
Joined: Sat Jan 09, 2021 10:38 am

Mon Jul 12, 2021 10:17 am

Hello,

Thanks for your inquiry.
I tested your case and did reproduced your issue, I have logged it in our bug tracking system with the ticket SPIREPDF-4456. If there is any update, we will let you know. Apologize for the inconvenience caused.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Fri Jul 16, 2021 5:01 pm

I also have other documents (one more attached) with same error, if it helps for testing.

System.NullReferenceException is also returned with other API calls, for example:

at sprᤵ.ᜁ(Int32 A_0)
at Spire.Pdf.Widget.PdfPageCollection.ᜀ(Int32 A_0)
at Spire.Pdf.Widget.PdfPageCollection.get_Item(Int32 index)
at Spire.Pdf.PdfDocumentBase.ᜀ(Int32 A_0, Int32 A_1, Int32 A_2)
at Spire.Pdf.PdfDocument.SaveAsImage(Int32 pageIndex, Int32 dpiX, Int32 dpiY)

Regards,
Brane

bbrodnik
 
Posts: 21
Joined: Sat Jan 09, 2021 10:38 am

Mon Jul 19, 2021 6:04 am

Hello Brane,

Thanks for your sharing.
I tested the new file you provided, and found that it has the same problem as SPIREPDF-4456. I have provided this file to our developers for further investigation. If there is any progress, we will notify you immediately.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Fri Aug 20, 2021 12:16 pm

Hello Brane,

Greetings from E-icblue!
Glad to inform you that we just released Spire.PDF Pack(Hot Fix) Version:7.8.8 which fixes your issue, please download it from the following links to test on your side. Looking forward to your test result.
Website link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.PDF/7.8.8

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Sat Aug 28, 2021 8:06 am

Excelent, it works, also for other documents with same issue!

Thank you and best regards,
Brane

bbrodnik
 
Posts: 21
Joined: Sat Jan 09, 2021 10:38 am

Mon Aug 30, 2021 1:32 am

You are welcome.
If you encounter any issues related to our products in the future, please feel free to contact us.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.PDF

cron