report_layouts
report_layouts(template=None, style='elevated')List the slide layouts of a PowerPoint template.
Shows what a template offers the report builders: every layout, its master, and the placeholders it carries. Useful to decide which layout to name in report_add_slide(), or to sanity-check an organisation template before building a deck against it. The report builders pick layouts automatically by inspecting placeholders, so most decks never need this.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| template | str or pptx.Presentation | Path to a .pptx, an existing document from report_new(), or None (default) for the brand template registered by use_brand(), falling back to a built-in template. |
None |
| style | str | Built-in template to inspect when no template is set: “elevated” (default) or “plain”. | 'elevated' |
Returns
| Name | Type | Description |
|---|---|---|
| pandas.DataFrame | One row per layout: layout, master, has_title, n_body, body_width, body_height (inches of the first body placeholder, missing when the layout has none). |
See Also
report_new, report_add_slide, use_brand
Examples
>>> report_layouts()