feature: reorder a slide
See original GitHub issueIn order to repurpose an existing presentation As a developer using python-pptx I need the ability to change the ordering of slides in a deck
Candidate protocol:
>>> slides = prs.slides
>>> len(slides)
6
>>> slide = slides[2]
>>> slides.index(slide)
2
>>> slide.move_to(5)
>>> slides.index(slide)
5
Issue Analytics
- State:
- Created 10 years ago
- Reactions:3
- Comments:16 (3 by maintainers)
Top Results From Across the Web
Change the order in which stacked objects, placeholders, or ...
To reorder objects on a slide, right-click the object (or set of grouped objects), and then click Bring to Front or Send to...
Read more >How to Rearrange & Navigate PPT & Move a Slide - Multiple ...
This Microsoft PowerPoint 2016 tutorial shows you how to arrange slides within your presentation. I show how to select slides in the slide...
Read more >Reorder Objects More Easily in PowerPoint's Selection Pane
On the Home tab, in the Editing group, click Select, Selection Pane to display the Selection task pane on the right. · Either...
Read more >How to Rearrange Slides in PowerPoint 2016's Slide Sorter ...
The Slide Layout task pane appears so that you can select the layout for the new slide. To edit the contents of the...
Read more >Modifying Your PowerPoint Presentation's Slide Order
To move a slide using the Slides Pane, use the same steps that you would in the Slide Sorter. Click, hold and drag...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The following works fine for me:
I was able to get this working with a slight modification.
The slide element is not what is being moved, but rather the sldId Element.