I am wondering if there is a way to detect unwrapped texts width within a table cell (Aspose.Pdf.Generator.Cell). I am unable to find a way to test if the text will expand further than the width of the cell, thus needing to reduce the text font size in order to make it fit. If there is another way of doing this please let me know
Aspose.Pdf.Generator.Cell cell = row.Cells.Add(“Large text string asdf asdf asdf asdf asdf asd f asdf adsf asdf end of string”);
while(cell.HasOverflowText()) //<-- This method doesn’t actually exist its just to show what I am trying to do
{
cell.DefaultCellTextInfo.FontSize -= 1;
}