You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For .pptx python-pptx seems the best choice, but it fails to open any older .ppt file. Luckily it looks like these guys have worked it out quite well for .ppt files.
Example of working code on Windows:
importaspose.slidesasslidesimportosdefprint_number_of_slides_with_aspose_slides(file_name):
prs=slides.Presentation(file_name)
print(f"Presentation '{file_name}' has {len(prs.slides)} slides.")
forfileinos.listdir("ppt"):
print_number_of_slides_with_aspose_slides(os.path.join("ppt", file))
The platforms Aspose.Slides for Python via .NET can be used on Windows x64 or x86 and wide range of Linux distributions with Python 3.5 or later installed.
so no macOS support (pip outputs ERR: Could not find a version that satisfies the requirement aspose.slides (from versions: none)
Other than .pdf, add .pptx, .ppt, .doc, .docx, etc...
The text was updated successfully, but these errors were encountered: