protected PdfPRow AdjustCellsInRow(int start, int end)
{
PdfPRow row = new PdfPRow(GetRow(start));
PdfPCell cell;
PdfPCell[] cells = row.GetCells();
for (int i = 0; i < cells.Length; i++)
{
cell = cells[i];
if (cell == null || cell.Rowspan == 1)
continue;
int stop = Math.Min(end, start + cell.Rowspan);
float extra = 0;
for (int k = start + 1; k < stop; k++)
{
extra += GetRow(k).MaxHeights;
}
row.SetExtraHeight(i, extra);
}
return row;
}