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.

Wed Feb 12, 2020 8:36 am

I'm using FreeSpire.PDF version 5.10.0

when it calls to
Code: Select all
System.Drawing.Image pdfImage = pdfDoc.SaveAsImage(0, Spire.Pdf.Graphics.PdfImageType.Bitmap, 150, 150);

I'm getting the error: object reference not set to an instance of an object
this is the stacktrace:

Code: Select all
   en sprᤂ.ᜁ(Single A_0)
   en sprᤂ.ᜃ(Single A_0)
   en sprᢢ.ᜀ(Graphics A_0, sprᢟ A_1, Boolean A_2, Boolean A_3)
   en sprᢢ.ᜁ(Graphics A_0, sprᢟ A_1, Boolean A_2, Boolean A_3)
   en sprᢟ.ᜀ(String A_0, sprᤂ A_1, String A_2, Boolean A_3)
   en sprᢟ.ᜀ(String[] A_0, String A_1)
   en sprᢟ.ᜀ(sprᤆ A_0)
   en sprᢟ.᜺()
   en sprᢟ.ᜋ(Boolean A_0)
   en sprᢟ.᜹()
   en Spire.Pdf.PdfDocumentBase.ᜀ(Int32 A_0, Int32 A_1, Int32 A_2)
   en Spire.Pdf.PdfDocumentBase.ᜀ(Int32 A_0, PdfImageType A_1, Int32 A_2, Int32 A_3)
   en Spire.Pdf.PdfDocument.SaveAsImage(Int32 pageIndex, PdfImageType type, Int32 dpiX, Int32 dpiY)


I'm gonna attach one of the pdfs that give me the error

JoanCapa
 
Posts: 2
Joined: Wed Feb 12, 2020 8:21 am

Wed Feb 12, 2020 9:17 am

Hi,

Thanks for your inquiry.
After testing the case with the latest Spire.PDF Pack(Hot Fix) Version:6.2.1, I didn't encounter the issue. Please try to use this version which has more fixes than old version.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Feb 12, 2020 9:26 am

Thanks for the fast reply.

I'm using the last version of FreeSpire.PDF not Spire.PDF

Thanks

JoanCapa
 
Posts: 2
Joined: Wed Feb 12, 2020 8:21 am

Wed Feb 12, 2020 10:10 am

Hi,

Sorry that we don't update free version regularly and I cannot say when we will release the free version. Anyway, if we release free version which solve your issue, we will let you know.
Besides, we suggest your use the commercial version which update faster and includes more fixes and features than free version.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Feb 14, 2020 9:03 am

Hi,

Thanks for your waiting.
Now we release Free Spire.PDF for .NET Version:6.2 which solves the issue.
Our website: https://www.e-iceblue.com/Download/down ... -free.html
NuGet: https://www.nuget.org/packages/FreeSpire.PDF/6.2.0

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDF