Hi ,
I want to parse all tables from PDF and add one para elements for each of tables. we are using ASPOSE.PDF (7.5.0).
Any help will be appreciated.
Hi ,
I want to parse all tables from PDF and add one para elements for each of tables. we are using ASPOSE.PDF (7.5.0).
Any help will be appreciated.
Would you please share a sample source PDF document along with expected output. We will test the scenario in our environment and address it accordingly.
As always recommended to use the latest version of the API, we tried to add a text on the top of table by using following code snippet with Aspose.PDF for .NET 20.11. We did not get much access as the position of text stamp could not get controlled according to the extracted table:
Document pdfDocument = new Document(dataDir + "2G Energy AG-18-e.pdf");
foreach (var page in pdfDocument.Pages)
{
Aspose.Pdf.Text.TableAbsorber absorber = new Aspose.Pdf.Text.TableAbsorber();
absorber.Visit(page);
foreach (AbsorbedTable table in absorber.TableList)
{
TextStamp stamp = new TextStamp("Table Header Para");
stamp.XIndent = table.Rectangle.URY;
page.AddStamp(stamp);
}
}
pdfDocument.Save(dataDir + "output.pdf");
Therefore, we have logged an investigation ticket as PDFNET-49147 in our issue tracking system for this case. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time. We also request you to provide a sample expected output PDF so that the ticket can be investigated accordingly.