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.

Tue Jun 05, 2018 6:07 pm

Hello,

When I try to open this specific document I get an Object not set to an instance of an object. It opens in adobe and if I flatten the form fields in adobe and save, it will then open

I own Spire.Pdf Platinum.

Spire.Pdf (4.5.0.2040)
Spire.PdfViewer.Forms (3.4.1.14340)

Here is my code:

Dim pdf As New Spire.PdfViewer.Forms.PdfDocumentViewer
pdf.Name = _fileNo & "_" & doc.Name & "_PdfViewer"
pdf.Dock = DockStyle.Fill
page.Controls.Add(pdf)
pdf.Show()
pdf.LoadFromFile(doc.FullName)

I've emailed the pdf to your support email address.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Spire.Pdf.PdfPageBase.0(spr439 A_0)
at Spire.Pdf.PdfPageBase.25()
at Spire.Pdf.PdfPageWidget..ctor(PdfDocumentBase A_0, spr3651 A_1, spr13211 A_2)
at Spire.Pdf.Widget.PdfPageCollection.4(spr13211 A_0)
at spr3651.0(spr439 A_0)
at spr3651.4(spr439 A_0)
at spr2527.2()
at spr2527.0()
at spr2527.7()
at spr3651.4(spr439 A_0)
at Spire.Pdf.Widget.PdfPageCollection.0(spr13211 A_0, Int32 A_1, Int32& A_2, Int32& A_3)
at Spire.Pdf.Widget.PdfPageCollection.0(spr13211 A_0, Int32 A_1, Int32& A_2, Int32& A_3)
at Spire.Pdf.Widget.PdfPageCollection.0(Int32 A_0, Int32& A_1, Boolean A_2)
at Spire.Pdf.Widget.PdfPageCollection.0(Int32 A_0)
at Spire.Pdf.Widget.PdfPageCollection.get_Item(Int32 index)
at Spire.PdfViewer.Forms.PdfDocumentViewer.14()
at Spire.PdfViewer.Forms.PdfDocumentViewer.LoadFromFile(String filePath)

mark@closerschoice.com
 
Posts: 7
Joined: Tue Sep 19, 2017 3:45 pm

Wed Jun 06, 2018 2:59 am

Hi,

Thanks for your inquiry.
I have reproduced the issue when loading the PDF with Spire.PDFViewer, and logged it in our bug tracking system. We will inform you as soon as there is any update.
Sorry for the inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Tue Jul 17, 2018 2:38 am

Hi,

Glad to inform you the issue has been fixed in Spire.Office Platinum (DLL Only) Version:3.7.0.
Looking forward to your feedback.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Wed Jul 18, 2018 8:25 am

Hi,

Greetings from E-iceblue.
Did you use the hotfix ? Has your issue been resolved ?

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Return to Spire.PDF