Free Support Forum - aspose.com

Too many tables in PDF document

I’m trying to extract tables from some of my PDF documents with one table per document. Instead of getting one table I got much more tables:

var pdfDoc = new Document(docPath);
foreach (Page pdfDocPage in pdfDoc.Pages)
{
    var tableAbsorber = new TableAbsorber();
    tableAbsorber.Visit(pdfDocPage);
    // There are three tables for attached document
    Console.WriteLine(tableAbsorber.TableList.Count); 
}

Example documents attached doc.zip (111.2 KB)

@feeeper,

Aspose.PDF for .NET API retrieves three tables. We can also find three tables in your source Word document, including header, footer and body tables. Please let us know in case of any further queries or questions.