I am moving code from one vb website to a new vb website. Same version of vb, same aspose dll same everything. In the new project on the line: absorber.Visit(Page)
I get the error “Object reference not set to an instance of an object”, even though there is an absorber and a page? It’s the same code. Thank you for your help.
Dim Page As Aspose.Pdf.Page
Dim absorber As New Aspose.Pdf.Text.TableAbsorber()
Dim table As Aspose.Pdf.Text.AbsorbedTable
Dim row As Aspose.Pdf.Text.AbsorbedRow
Dim pdfDocument As Aspose.Pdf.Document '(FullFileName)
Dim pdfBytes As Byte() = System.IO.File.ReadAllBytes(FullFileName)
Dim stream As New System.IO.MemoryStream
Try
stream = New System.IO.MemoryStream(pdfBytes)
pdfDocument = New Aspose.Pdf.Document(stream)
Page = pdfDocument.Pages(PageNumber) 'Set the page in the df document, by page number
Catch ex As Exception
End Try
Try
absorber.Visit(Page) <-------Error here