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)