Hi Team,
Hi there,
Hi Tilal Ahmad,
Hi Ishan,
Thanks for contacting support.
Please check following code snippet which I have used to test the scenario with one of my sample PDFs and was unable to notice the issue. For your reference, I have attached an input document as well.
Document pdfDocument = new Document(“document_with_table_out.pdf”);
TableAbsorber absorber = new TableAbsorber();
absorber.Visit(pdfDocument.Pages[1]);
// Extract Data From First Row, First Cell
TextFragment fragment = absorber.TableList[0].RowList[0].CellList[0].TextFragments[1];
Console.WriteLine(fragment.Text);
For more information you may visit “Manipulate Table in Existing PDF” article which contains updated information regarding table extraction and in case if you still face any issue, please share your input document so that we can test the scenario in our environment and address it accordingly.
Best Regards,
Hi Asad ,
Thanks for your response but already tried this code:
Document pdfDocument = new Document("document_with_table_out.pdf");
TableAbsorber absorber = new TableAbsorber();
absorber.Visit(pdfDocument.Pages[1]);
// Extract Data From First Row, First Cell
TextFragment fragment = absorber.TableList[0].RowList[0].CellList[0].TextFragments.FirstOrDefault();
if (fragment != null)
{
Console.WriteLine(fragment.Text);
}
else
{
Console.WriteLine("No text found in the specified cell.");
}
the link you have mentioned i visited that but problem is still same.
Please help
regards
Ishan
Hi Ishan,