ppt

Module Contents

Classes

PPT

Plugin to create ppt slides with text, paragraph, images in good looking styles

Attributes

THEME_MAPPING

lagent.actions.ppt.THEME_MAPPING
class lagent.actions.ppt.PPT(theme_mapping=None, description=None, parser=JsonParser, enable=True)

Bases: lagent.actions.base_action.BaseAction

Plugin to create ppt slides with text, paragraph, images in good looking styles

Parameters:
create_file(theme, abs_location)

Create a pptx file with specific themes

Parameters:
  • theme (str) – the theme used

  • abs_location (str) – the ppt file’s absolute location

Returns:

operation status
  • status: the result of the execution

Return type:

dict

add_first_page(title, subtitle)

Add the first page of ppt.

Parameters:
  • title (str) – the title of ppt

  • subtitle (str) – the subtitle of ppt

Returns:

operation status
  • status: the result of the execution

Return type:

dict

add_text_page(title, bullet_items)

Add text page of ppt

Parameters:
  • title (str) – the title of the page

  • bullet_items (str) – bullet_items should be string, for multiple bullet items, please use [SPAN] to separate them.

Returns:

operation status
  • status: the result of the execution

Return type:

dict

add_text_image_page(title, bullet_items, image)

Add a text page with one image. Image should be a path

Parameters:
  • title (str) – the title of the page

  • bullet_items (str) – bullet_items should be string, for multiple bullet items, please use [SPAN] to separate them.

  • image (str) – the path of the image

Returns:

operation status
  • status: the result of the execution

Return type:

dict

submit_file()

When all steps done, YOU MUST use submit_file() to submit your work.

Returns:

operation status
  • status: the result of the execution

Return type:

dict