I think there is an issue with using rowspan in a table with colspan.
Take the following code:
var tmpLayoutTestTable = new Table
{
Border = new BorderInfo(BorderSide.All, .5f,
Color.FromRgb(System.Drawing.Color.LightGray)),
DefaultColumnWidth = "50",
DefaultCellPadding = new MarginInfo(2f, 2f, 0f, 2f),
};
var tmpRow1 = tmpLayoutTestTable.Rows.Add();
tmpRow1.Cells.Add(new Cell()
{
ColSpan = 2,
BackgroundColor = Color.Red
});
tmpRow1.Cells.Add(new Cell()
{
//ColSpan = 2,
BackgroundColor = Color.Red
});
tmpRow1.Cells.Add(new Cell
{
BackgroundColor = Color.Green,
RowSpan = 2
});
tmpRow1.Cells.Add(new Cell
{
BackgroundColor = Color.Yellow,
//ColSpan = 3
});
tmpRow1.Cells.Add(new Cell
{
ColSpan = 8,
BackgroundColor = Color.Pink
});
var tmpRow2 = tmpLayoutTestTable.Rows.Add();
tmpRow2.Cells.Add(new Cell()
{
ColSpan = 2,
BackgroundColor = Color.Blue
});
tmpRow2.Cells.Add(new Cell()
{
//ColSpan = 2,
BackgroundColor = Color.Blue
});
tmpRow2.Cells.Add(new Cell
{
BackgroundColor = Color.Blue,
//ColSpan = 3
});
tmpRow2.Cells.Add(new Cell
{
ColSpan = 8,
BackgroundColor = Color.Pink
});
As of my expectations, the blue cell should be the same length as the red cell. This is not the case.
Aspose.PDF 18.8.0
Could you confirm that?