Bullet-points simple

  1. Select the shape by name you want to modify. See here to find shape names.

  2. Use text_run to list your text into separate chunks.

  3. Control bullet-point properties in text_properties.

Reference: `text_properties` Object

Download: input.zip | output.pptx


{
  "presentation": {
    "template": "template.pptx",
    "slides": [
      {
        "slide_index": 0,
        "shapes": [
          {
            "name": "TextBox 1",
            "text": [
              {
                "text_run": "Point 1 ",
                "text_properties": {
                  "bullet": true
                }
              },
              {
                "text_run": "Point 2",
                "text_properties": {
                  "bullet": true,
                  "font_bold": true,
                  "font_size": 20
                }
              },
              {
                "text_run": "Point 3",
                "text_properties": {
                  "bullet": true
                }
              },
              {
                "text_run": "Point 4",
                "text_properties": {
                  "bullet": true,
                  "font_bold": true,
                  "font_size": 20
                }
              }
            ]
          },
          {
            "name": "TextBox 2",
            "text": [
              {
                "text_run": "Point 1\nPoint 2\nPoint 3\nPoint 4",
                "text_properties": {
                  "bullet": true,
                  "font_bold": true
                }
              }
            ]
          }
        ]
      }
    ]
  }
}

Last updated

Was this helpful?