Change shape size and position
To change the size and position of a shape(text box, image, table, charts, etc)
Select the shape by
nameyou want to modify. See here to find shape names.Insert relevant size or position settings into
settingsobjectSet the desire shape size
heightweight& positiontopleftusing a JSON payloadSpecify the unit
unit
Reference: shapes
Download: input.zip | output.pptx


{
"presentation": {
"template": "template.pptx",
"export_version": "Pptx2010",
"slides": [
{
"type": "slide",
"slide_index": 0,
"shapes": [
{
"name": "Rectangle 1",
"settings": {
"height": 5,
"width": 9,
"top": 8.5,
"left": 15.25,
"unit": "cm"
}
}
]
}
]
}
}
Last updated
Was this helpful?