13 lines
369 B
Python
Executable File
13 lines
369 B
Python
Executable File
#!/usr/bin/env python3
|
|
import sys
|
|
from pptx import Presentation
|
|
try:
|
|
prs = Presentation(sys.argv[1])
|
|
for i, slide in enumerate(prs.slides, 1):
|
|
print(f"\n=== Slide {i} ===")
|
|
for shape in slide.shapes:
|
|
if hasattr(shape, "text") and shape.text.strip():
|
|
print(shape.text)
|
|
except Exception as e:
|
|
print(f"Erreur: {e}")
|