Skip to content

Conversation

@wkpark
Copy link

@wkpark wkpark commented Oct 10, 2025

WIP

This is merely one example.

It does not function perfectly, and only some features work as intended.
Nevertheless, if you are planning to add or edit slide layouts, please refer to this.

  • add_layout()
  • add_placeholder()

#1044 - apply this suggestion into this PR.

examples

...
    prs = Presentation()
    ph_list = [
        PP_PLACEHOLDER.TITLE,
        PP_PLACEHOLDER.CENTER_TITLE
        PP_PLACEHOLDER.SUBTITLE,
        PP_PLACEHOLDER.BODY,
    ]
...
    layout= prs.slide_layouts.add_layout("My Layout %s")
...
    ph = layout.shapes.add_placeholder(PP_PLACEHOLDER.TITLE, "horz", "full")
    ph.text = "insert Title here"
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant