Merge branch 'zdy'
This commit is contained in:
9
desktop_env/evaluators/metrics/impress.py
Normal file
9
desktop_env/evaluators/metrics/impress.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
from pptx import Presentation
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
path1 = "../../任务数据/LibreOffice Impress/Change_Color_Slide_Number_gold_textbox.pptx"
|
||||||
|
presentation = Presentation(path1)
|
||||||
|
|
||||||
|
for i, sl in enumerate(presentation.slides):
|
||||||
|
for j, sh in enumerate(sl.shapes):
|
||||||
|
print(i, j, sh, sh.name, sh.shape_type, sh.text)
|
||||||
@@ -20,4 +20,5 @@ cssselect
|
|||||||
xmltodict
|
xmltodict
|
||||||
openpyxl
|
openpyxl
|
||||||
python-docx
|
python-docx
|
||||||
|
python-pptx
|
||||||
pypdf
|
pypdf
|
||||||
|
|||||||
Reference in New Issue
Block a user