Paper Office
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; a target_idx of None marks a source placeholder that was orphaned.
  • baked_orphans -- names of orphan placeholders converted to free shapes (only populated under orphan_policy="bake").
  • run_shifts -- one :class:RunShift for 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_layoutstr

source_layout_name

attributesource_layout_namestr

target_layout

attributetarget_layoutstr

target_layout_name

attributetarget_layout_namestr

Functions

to_dict

functo_dict() -> dict

Return the rebind report as a JSON-ready dict stamped with its schema and version.

Returns

dict

On this page