Set bold, italic & underline

  1. Find the shape name you want to update. See here to find shape names.

  2. Specify the text need amending under text_run. Text within one textbox can be split into multiple chunks.

  3. Add font settings for selected text under text_properties.

  4. Insert new_line as boolean before another text_run.

  5. For more options forfont_underline please refer to this page [link].

Before vs After

Template Presentation

JSON Payload

{
  "presentation": {
    "template": "slides_as_template_bold.pptx",
    "export_version": "Pptx2010",
    "slides": [
      {
        "type": "slide",
        "slide_index": 0,
        "shapes": [
          {
            "name": "Title 1",
            "text_content": [
              {
                "text_run": "Text bold",
                "text_properties": {
                  "font_bold": true,
                  "new_line": true
                }
              },
              {
                "text_run": "Text italic",
                "text_properties": {
                  "font_italic": true,
                  "new_line": true
                }
              },
              {
                "text_run": "Text underline",
                "text_properties": {
                  "font_underline": "single",
                  "new_line": true
                }
              }
            ]
          }
        ]
      }
    ]
  }
}

Last updated