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.

Fri Nov 25, 2022 3:46 pm

Hi Support,

We are Using Spire.Pdf Version 8.11 and we are facing Object reference not set to an instance of an object issue on one of our PDF when converting it to imaged. Here is the code Sample what we are using

using (var doc = new PdfDocument(Server.MapPath("~/pdf/82119a02-b4fe-4444-b382-4e7d6b6bf582.pdf"))) // This is the pdf
{
for (int i = 0; i < doc.Pages.Count; i++)
{
using (Image image = doc.SaveAsImage(i, 192, 192)) //raises error using spire 8.11 - Works fine using other 3rd party tools like 'Aspose'
{
string finalPdfPath = GetCurrentPresentationPdfImagesPath() + "/TestPdf_File" + "_Page" + (i + 1) + ".png";
image.Save(finalPdfPath, System.Drawing.Imaging.ImageFormat.Jpeg);
}
}
}

I have also attached the file in which we are facing this issue. Your quick response and fix will be much appreciated.

jperkinsSC
 
Posts: 95
Joined: Thu Oct 30, 2014 10:01 pm

Mon Nov 28, 2022 6:49 am

Hi jperkinsSC,

Thanks for your inquiry and sorry for the late reply as weekend.
I reproduced the issue you mentioned and logged it into our bug tracking system with the ticket number SPIREPDF-5644, our development team will investigate and fix it, sorry for the inconvenience caused. Once there is any good news, I will inform you as soon as possible.

Sincerely,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Mon Dec 05, 2022 5:16 pm

Hi Triste

Hope you are doing well, is there any update on this issue.

Regards,

jperkinsSC
 
Posts: 95
Joined: Thu Oct 30, 2014 10:01 pm

Tue Dec 06, 2022 2:05 am

Hi jperkinsSC,

Thanks for your following-up.
I got news from our dev team, the SPIREPDF-5644 is going to the testing phrase, please spare us a little more time, once it passes the test, I will inform you of a new version asap. Thanks for your understanding.

Sincerely,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Wed Dec 14, 2022 10:00 am

jperkinsSC wrote:Hi Triste

Hope you are doing well, is there any update on this issue.

Regards,


Hello jperkinsSC,

Glad to inform that we just released Spire.Pdf (Hotfix) Version: .8.12.5, which fixed the issue of SPIREPDF-5644, please download it from the following link and have a test.
Website link: https://www.e-iceblue.com/Download/download-pdf-for-net-now.html

Sincerely,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Wed Dec 14, 2022 6:20 pm

Thanks for the update , we will try this , and update you if there is any issue.

jperkinsSC
 
Posts: 95
Joined: Thu Oct 30, 2014 10:01 pm

Thu Dec 15, 2022 7:13 am

jperkinsSC wrote:Thanks for the update , we will try this , and update you if there is any issue.

Hi jperkinsSC,

Thanks for your following-up.
If there are any issues after your test, just feel free to contact us. Have a nice day. :)

Sincerely,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Mon Dec 19, 2022 7:46 pm

Hi Triste

Thanks , We have check in our POC and it seems that the error is fixed and is working, Now we will implement it in our system, if there is any Issue I will let you know,

Thanks for the fix.

Regards

jperkinsSC
 
Posts: 95
Joined: Thu Oct 30, 2014 10:01 pm

Tue Dec 20, 2022 2:54 am

jperkinsSC wrote:Hi Triste

Thanks , We have check in our POC and it seems that the error is fixed and is working, Now we will implement it in our system, if there is any Issue I will let you know,

Thanks for the fix.

Regards

Hi jperkinsSC,

Thanks for your feedback.
Glad to know that your issue was solved, if you have any issue in the future, do not hesitate to contact us.

Sincerely,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Return to Spire.PDF