module mokadi.pptx_helper

Short summary

module botadi.mokadi.pptx_helper

Helpers on Powerpoint presentation. It relies on module python-pptx.

source on GitHub

Functions

function

truncated documentation

pptx_apply_transform

Applies the same transformation on all text zone.

pptx_enumerate_text

Enumerates all text content in a presentation.

Documentation

Helpers on Powerpoint presentation. It relies on module python-pptx.

source on GitHub

botadi.mokadi.pptx_helper.pptx_apply_transform(ptx, replace_func)

Applies the same transformation on all text zone.

Parameters
  • ptx – presentation

  • replace_func – function ``f(islide, ishape, ip, text) –> text

Returns

presentation

Warning

Updated text does not retain style (bug).

source on GitHub

botadi.mokadi.pptx_helper.pptx_enumerate_text(ptx)

Enumerates all text content in a presentation.

Parameters

ptx – presentation

Returns

enumerate (slide, shape, zone, text)

source on GitHub