Repeat template slides by ID
Easily create multiple copies of your template slides using slide id
You can repeat a template slide using the slide's unique identifier to create multiple copies as needed.
Using
slide_id
ensures the correct slide is referenced even if the slide order or structure changes within the template.
Finding the ID of a slide:
Programmatically:
using VBA or any library capable of reading PowerPoint XML (e.g.,
python-pptx
).
Manually:
Rename the
.pptx
file to.zip
.Open the ZIP and navigate to
ppt/presentation.xml
.Inside, look for the
<p:sldIdLst>
section — each<p:sldId>
element has anid
attribute that represents the slide’s unique ID.

Reference: slides
Download: input.zip | output.pptx


{
"presentation": {
"template": "template.pptx",
"slides": [
{
"slide_id": 265
}
]
}
}
Last updated
Was this helpful?