paper-pptxAPI referencerebind
RebindReport
paper-pptx 0.2.0 API reference
What one rebind did: the mapping used, orphan handling, and every resolution shift.
Fields:
source_layout/source_layout_name-- partname and display name of the layout the slide was bound to before.target_layout/target_layout_name-- partname and display name of the layout the slide is bound to after.placeholder_map_used-- the resolved(source_idx, target_idx)pairs; atarget_idxofNonemarks a source placeholder that was orphaned.baked_orphans-- names of orphan placeholders converted to free shapes (only populated underorphan_policy="bake").run_shifts-- one :class:RunShiftfor every run whose resolved effective values changed; empty when the rebind preserved appearance exactly.
RebindReport(source_layout: str, source_layout_name: str, target_layout: str, target_layout_name: str, placeholder_map_used: Tuple[Tuple[int, Optional[int]], ...], baked_orphans: Tuple[str, ...], run_shifts: Tuple[RunShift, ...])Attributes
baked_orphans
attributebaked_orphansTuple[str, ...]placeholder_map_used
attributeplaceholder_map_usedTuple[Tuple[int, Optional[int]], ...]run_shifts
attributerun_shiftsTuple[RunShift, ...]source_layout
attributesource_layoutstrsource_layout_name
attributesource_layout_namestrtarget_layout
attributetarget_layoutstrtarget_layout_name
attributetarget_layout_namestrFunctions
to_dict
functo_dict() -> dictReturn the rebind report as a JSON-ready dict stamped with its schema and version.
Returns
dict