|
|
|
@ -33,7 +33,7 @@ def ppt_to_png(filename, ad_img_path):
|
|
|
|
powerpoint = init_powerpoint()
|
|
|
|
powerpoint = init_powerpoint()
|
|
|
|
|
|
|
|
|
|
|
|
if filename.endswith(".ppt") or filename.endswith(".pptx"):
|
|
|
|
if filename.endswith(".ppt") or filename.endswith(".pptx"):
|
|
|
|
downLoad_path = os.path.join(ad_img_path, os.path.splitext(os.path.basename(filename))[0])
|
|
|
|
downLoad_path = os.path.join(ad_img_path)
|
|
|
|
ppt2png(filename, downLoad_path, powerpoint)
|
|
|
|
ppt2png(filename, downLoad_path, powerpoint)
|
|
|
|
|
|
|
|
|
|
|
|
powerpoint.Quit() # 退出PowerPoint
|
|
|
|
powerpoint.Quit() # 退出PowerPoint
|
|
|
|
|