Handling merged cells
You can add data to tables even if there are merged cells.
Using the following payload you can add data to all cells, including the merged cells.
Each list in `data_cells` denotes a row in your table.
Each row list must have the same number of list objects. Data from the last merged cell will be rendered to the merged cell in your table shape.
Before vs after


Template Presentation
JSON Payload
{
"presentation": {
"template": "table_with_merged_cells.pptx",
"export_version": "Pptx2010",
"slides": [
{
"type": "slide",
"slide_index": 2,
"shapes": [
{
"type": "table",
"name": "Table 2",
"data_cells": [
[
"A1",
"A2",
"A3",
"A4",
"A5",
"A6"
],
[
"",
"",
"B1:B3",
"B4",
"B5",
"B6"
],
[
"C1",
"C2",
"C3",
"C4",
"C5",
"C6"
],
[
"D1",
"D2",
"D3",
"D4",
"D5",
"D6"
]
]
}
]
}
]
}
}
Last updated
Was this helpful?