Change shape size and position

To change the size and position of a shape(text box, image, table, charts, etc)

  1. Specify name of shape to be amended. This page outlines how to find out name of the shape.

  2. Insert relevant size or position settings into settings object

  3. Set the desire shape size height weight & position top left using a JSON payload

  4. Specify the unit unit

Before and after:

PowerPoint template:

JSON payload:

{
   "presentation": {
      "template": "slides_as_template_size_position.pptx",
      "export_version": "Pptx2010",
      "slides": [
         {
            "type": "slide",
            "slide_index": 0,
            "shapes": [
               {
                  "name": "Title 1",
                  "settings": {
                     "height": 7,
                     "width": 12,
                     "top": 10,
                     "left": 20,
                     "unit": "cm"
                  }
               }
            ]
         }
      ]
   }
}

Last updated