Skip to content

Feature request: useTemplateLayout option to honour template body placeholder bounds #222

Description

@troutrot

Motivation

When using a PPTX template that positions the body placeholder in
a specific area (e.g. offset from the left to leave room for a
sidebar or logo), md2pptx ignores the placeholder's bounds and
sizes all content blocks using slide margins alone, causing
generated content to overflow the template's intended area.

Proposed option

Metadata key Type Default Effect
useTemplateLayout bool no When yes, content rect and paragraph indentation follow the template's body placeholder dimensions instead of slide margins.

Usage:

useTemplateLayout: yes

Default is no, so existing behaviour is fully preserved.

Happy to submit a PR if this direction looks good.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions