scanny / python-pptx

Create Open XML PowerPoint documents in Python
MIT License
2.26k stars 499 forks source link

About how to extract media file and position? #932

Closed newdee closed 7 months ago

newdee commented 7 months ago

when pptx has media info, how to extract media file from every slide? any answer will be helpful

scanny commented 7 months ago

You haven't described your purposes, that is, "why" you want to do this, so there are many possible answers. One is you can unzip the .pptx file (which is a zip archive) and locate all the media files in there by extension or perhaps using the filemagic library.

newdee commented 7 months ago

Not the location in the folder, but which page and location in the ppt. If you want to extract the video and resume editing, is this function supported?