@shaurya.chawla
We tried below code snippet in our environment to add form fields inside table cell but in the output PDF, no text box was present.
Document pdfDocument = new Document(dataDir + "pdf input.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)
{
foreach (AbsorbedRow row in table.RowList)
{
var cello = row.CellList[5];
Aspose.Pdf.Forms.TextBoxField txtBox = new TextBoxField(page, cello.Rectangle);
txtBox.Characteristics.Background = System.Drawing.Color.Red;
page.Paragraphs.Add(txtBox);
}
}
}
pdfDocument.Save(dataDir + "output.pdf");
Therefore, an issue as PDFNET-53344 has been logged in our issue tracking system. We will further look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.
We are sorry for the inconvenience.