Set text alignment
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 settings for selected text under
text_properties
.Insert
new_line
as boolean before anothertext_run
.
Before and After
Template Presentation
JSON Payload
{
"presentation": {
"template": "slides_as_template_text_align.pptx",
"export_version": "Pptx2010",
"slides": [
{
"slide_index": 0,
"shapes": [
{
"name": "Title 1",
"text": [
{
"text_run": "Text align: left\n",
"text_properties": {
"text_align": "left"
}
},
{
"text_run": "Text align: center\n",
"text_properties": {
"text_align": "center"
}
},
{
"text_run": "Text align: right\n",
"text_properties": {
"text_align": "right"
}
},
{
"text_run": "Text align: justified\n",
"text_properties": {
"text_align": "justified"
}
},
{
"text_run": "Text align: distribution\n",
"text_properties": {
"text_align": "dist"
}
}
]
}
]
}
]
}
}
Last updated
Was this helpful?