What problem does it solve? When you use python-pptx to open a template that already contains slides, clear the slide list, and add new pages, the saved .pptx renders blank in PowerPoint and strict preview engines. This happens because orphan slide parts duplicate zip entries and stale relationship IDs leak into presentation.xml.rels. ## Core Features & Use Cases - Zip Deduplication: Removes duplicate slide part entries in the .pptx zip archive, keeping only the last written copy. - Relationship Rebuild: Rewrites ppt/_rels/presentation.xml.rels so slide rIds are continuous, unique, and never collide with non-slide relationships like notesMaster or presProps. - sldIdLst Reconstruction: Rebuilds the slide ID list in presentation.xml to reference only valid new rIds. - Use Case: You generate a 30-page clinical lecture deck from a branded template and PowerPoint shows pages 2-29 as blank. Run the rebuild script after prs.save() to produce a clean, openable file. ## Quick Start Fix my generated pptx file that opens blank in PowerPoint by deduplicating its slide parts and rebuilding the presentation relationships.