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.
Select the shape by
nameyou want to modify. See here to find shape names.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.
Reference: table
Download: input.zip | output.pptx


{
"presentation": {
"template": "template.pptx",
"slides": [
{
"slide_index": 0,
"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?