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:
Default is no, so existing behaviour is fully preserved.
Happy to submit a PR if this direction looks good.
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
useTemplateLayoutnoyes, content rect and paragraph indentation follow the template's body placeholder dimensions instead of slide margins.Usage:
Default is
no, so existing behaviour is fully preserved.Happy to submit a PR if this direction looks good.