I want to export a ppt slide as an png format image through pptx python.
I have gone through this solution using win32com but facing error as com_error: (-2147221005, 'Invalid class string', None, None)
while running win32com.client.Dispatch("PowerPoint.Application")
I have also tried using pptx_tools.utils.save_pptx_as_png
, but it is asking Comptype module needed to save PNGs.
and I don't find any comptype
module in Python. I have installed comtype
module but it is throwing an syntax error while importing.
Please let me know any efficient way to export pptx slide as image