Adding padding to a table cell

Hey guys, I am currently upgrading our extremely old aspose libraries that relied on the PDF.Generator namespace. I have ran into an issue with padding for cells within tables. We used to be able to update the padding via Cell.Padding.Left, Cell.Padding.Right, etc…

What is the correct way of going about adding padding for cells now?

Thank you

@jreed

You can use Row.DefaultCellPadding Property to set the padding for cells inside a table row. Also, you can use Cell.Margin Property in order specify margin for its content.

1 Like