这是我的代码。
#! /usr/bin/env python
运行此代码后出现此错误,任何人都可以解决。
import comtypes.client
import os
input_file=input("Enter the file path")
output_path=os.path.splitext(input_file)[0]
powerpoint=comtypes.client.CreateObject('Powerpoint.Application')
pdf=powerpoint.Presentations.Open(input_file,WithWindow=False)
pdf.SaveAs(output_path,32)
pdf.Close()
powerpoint.Quit()