Set font color and font background color
Find the shape
name
you want to update. See here to find shape names.Specify the text need amending under
text_run
. Text within one textbox can be split into multiple chunks.Add font color setting
font_color
or font backgrount stettingfont_bg_color
for selected text undertext_properties
.Insert
new_line
as boolean before anothertext_run
.
Before and After
Template Presentation
JSON Payload
{
"presentation": {
"template": "slides_as_template_text_font_color.pptx",
"export_version": "Pptx2010",
"slides": [
{
"slide_index": 0,
"shapes": [
{
"name": "Title 1",
"text": [
{
"text_run": "Text color",
"text_properties": {
"font_color": "147, 147, 132"
}
},
{
"text_run": "Text background color",
"text_properties": {
"font_bg_color": "#f5f5dc"
}
}
]
}
]
}
]
}
}
Last updated
Was this helpful?