When using HorizontalMerge, rendering to PDF doesn’t produce the correct output. See the two sample documents attached. The Word output renders correctly. They were created using the following code:
Builder.StartTable()
Builder.InsertCell()
Builder.CellFormat.Width = ConvertUtil.InchToPoint(5)
Builder.CellFormat.HorizontalMerge = CellMerge.First
Builder.Write(“Long text…”)
Builder.InsertCell()
Builder.CellFormat.ClearFormatting()
Builder.CellFormat.HorizontalMerge = CellMerge.Previous
Builder.EndRow()
Builder.CellFormat.ClearFormatting()
Builder.InsertCell()
Builder.CellFormat.Width = ConvertUtil.InchToPoint(2.5)
Builder.Write(“1”)
Builder.InsertCell()
Builder.CellFormat.Width = ConvertUtil.InchToPoint(2.5)
Builder.Write(“2”)
Builder.EndRow()
Builder.EndTable()