Add to a table in an existing PDF document

Hi All

As the title implies, I would like to add an item to an existing table in a PDF that I have loaded. Something like this

PdfLoadedDocument loadedDocument = new PdfLoadedDocument(PdfFileName);
PdfGrid grid = new PdfGrid();

doc = PdfDocument.Merge(null, loadedDocument) as PdfDocument;
page = doc.Pages[0];
grid = page.grid[index]; <--------- this would be nice

and so ...

grid.rows[1].cells[2].value = "appended value";


Is this possible?





1 Reply

JT Jeyalakshmi Thangamarippandian Syncfusion Team February 29, 2024 07:58 AM UTC

Hi,

We do not have support for retrieving table from the existing PDF document due to it is not possible to update the text on the PDF using the mentioned approach. However, you can use our page graphics to draw the text in the desired position. Please refer to the UG documentation for further details.

https://help.syncfusion.com/file-formats/pdf/working-with-text#drawing-text-in-a-new-document

Regards,

Jeyalakshmi T

 


Loader.
Up arrow icon