Skip to content

How to apply PowerPoint template (.POTX/.PPTX) to existing slides using python-pptx? #1095

@umair-shahzad12

Description

@umair-shahzad12

I am developing a PowerPoint Add-in using the Office JavaScript API.

I want to apply a PowerPoint template (POTX or PPTX) to the user’s current presentation without adding or replacing slides — basically, I want to apply the new design/theme to the existing slides.
Currently, I am using office js API, this inserts new slides from the uploaded template, but it doesn’t update the existing slides with the new design.

Questions

Is there any support in python-pptx so that we can apply a POTX/PPTX theme to existing slides?

Can we copy or move content from an existing slide to a new slide programmatically?

Are there any plans to add such functionality in the python-pptx?

What is the recommended approach if we want to let users change slide design dynamically?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions