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 Jul 10, 2015 10:39 pm

Hi,

I have written an application using your Spire.PDF API. It opens PDFs, saves the individual pages in the PDF as images and displays each page inside of a tab control.

It works great for most everything except one of my customers PDF forms. It is a 2 page PDF form and when I try and save the 2nd page as an image I get:

System.NullReferenceException was unhandled
_HResult=-2147467261
_message=Object reference not set to an instance of an object.
HResult=-2147467261
IsTransient=false
Message=Object reference not set to an instance of an object.
Source=Spire.Pdf
StackTrace:
at spr?.?(spr? A_0, Boolean A_1)
at spr?.?(Boolean A_0)
at spr?.?()
at Spire.Pdf.PdfDocumentBase.?(Int32 A_0)
at Spire.Pdf.PdfDocumentBase.?(Int32 A_0, PdfImageType A_1)
at Spire.Pdf.PdfDocument.SaveAsImage(Int32 pageIndex, PdfImageType type)
...

I cannot attach the PDF form here inside of this post as it is one of our customer's forms and has their proprietary information in it.

Please let me know where to email it to you, if required.

Thanks,

Grant

WesternIndustrial
 
Posts: 13
Joined: Wed Jul 08, 2015 4:11 am

Mon Jul 13, 2015 1:53 am

Hello,

Thanks for your inquiry.
Please send the sample file to us ( [email protected] ) via email.
It would be helpful to replicate the issue and work out the solution for you ASAP.

Best Regards,
Sweety

E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Return to Spire.PDF

cron