We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to find table header name and table exist in same page or not?

i have a table in pdf file, i want to verify the table header name and table must be same page, is it possible to verify


Would you please share your sample PDF with us. We will test the scenario in our environment and address it accordingly.

Tablesinpdf.pdf (288.4 KB)


Would you please share the table header name and page number for which you want to verify that they are on same page?

Page number 3

3.1 processing heading below table and Fig:


We are afraid that there is no such feature to achieve what you require and for the sake of detailed investigation, we have logged a ticket as PDFNET-48120 in our issue tracking system. We will further investigate the feasibility of your requirements and keep you posted with the status of ticket resolution. Please be patient and spare us some time.

We are sorry for the inconvenience.


But we are using this aspose.pdf product, we are getting lot of challenges to implement different scenarios, but this product not given such functionality, then what is the use.

i think this product just conversion purpose use it is better.

at least is it possible to find the table and table title in same page or not?


We apologize for the inconvenience.

It is possible to find a table and text in a PDF document. However, there are many limitations in order to find whether the table and table title is on the same page. Aspose.PDF offers the capability to search text as well as tables in PDF documents but, which table is associated with which title - there is no hint present in the shared PDF document about that.

For instance, if you know the table and its title relation - you can use the following code snippet to do that:

Document doc = new Document(dataDir + "Tablesinpdf.pdf");
// Locate title
TextFragmentAbsorber titleFinder = new TextFragmentAbsorber("Columns after applying Algorithm 4");
TableAbsorber tableFinder = new TableAbsorber();
TextFragment fragment = tableFinder.TableList[0].RowList[0].CellList[0].TextFragments[1];
if(fragment.Text.Contains("Family") && titleFinder.TextFragments.Count > 0)
  Console.WriteLine("Title and Table are on same page.");

Furthermore, an initial investigation shows that your PDF does not contain any table. There are images and graphics drawn in the PDF which cannot be identified as table. Therefore, we logged a ticket in our issue tracking system to investigate whether your requirements are feasible or not. We will surely inform you as soon as we have some updates regarding ticket resolution. Please spare us some time.

We are sorry for the inconvenience.