PowerPoint Generator API
  • PowerPoint Generator API
  • Getting started
    • Quick start
  • API reference
    • token/create
    • generator/create
  • Knowledge base
    • Key concepts
    • Templating your presentation
    • Building your JSON payload
    • Finding shape names
  • JSON/ PPTX Reference
    • presentation
    • slides
    • shapes
      • textbox
      • chart
      • picture
      • table
    • tags
    • Deprecated
  • Examples
    • Presentation
      • Naming output presentation
      • Using multiple templates
    • Slide
      • Change shape size and position
      • Change shape background color
      • Hide or remove shape
      • Replacing tags
    • Textboxes
      • Add text
      • Set font type and size
      • Set font color and font background color
      • Set bold, italic & underline
      • Set text alignment
      • Set text indentation
      • Set text line spacing
      • Using bullet-points
    • Chart
      • Change font settings
      • Insert data
      • Adjust chart legend
      • Appending to data labels
    • Pictures
    • Table
      • Populate simple table
      • Using `text_runs` in Table cells
      • Handling merged cells
      • Update a specific cells in existing table
    • Tags
Powered by GitBook
On this page

Was this helpful?

  1. Examples
  2. Slide

Change shape background color

PreviousChange shape size and positionNextHide or remove shape

Last updated 2 years ago

Was this helpful?

  1. Specify name of the shape under name . This outlines how to find out name of the shape.

  2. Insert either c (e.g. black), RGB (e.g. 0,0,0), or (e.g. #000000) for fill_color within the settings object

{
   "presentation": {
      "template": "slides_as_template_fill_color.pptx",
      "export_version": "Pptx2010",
      "slides": [
         {
            "type": "slide",
            "slide_index": 0,
            "shapes": [
               {
                  "name": "TextBox 4",
                  "content": "Text box",
                  "settings": {
                     "fill_color": "#f5f5dc"
                  }
               },
               {
                  "name": "Rectangle 5",
                  "settings": {
                     "fill_color": "245, 245, 220"
                  }
               },
               {
                  "name": "Chart 8",
                  "settings": {
                     "fill_color": "beige"
                  }
               }
            ]
         }
      ]
   }
}
page
olor name
Hex
52KB
slides_as_template_fill_color.pptx