Paper Office
paper-pptxAPI referencerebind

RunShift

paper-pptx 0.2.0 API reference

One run whose resolved effective values changed across the rebind.

Runs are identified by (shape_id, block_ordinal-within-shape, run_index) - a STABLE key that survives shapes being added or removed elsewhere on the slide. Keying by the slide-global block index would pair unrelated runs the moment any earlier shape disappears.

Fields:

  • part -- partname of the slide the run lives on.
  • shape_id -- id of the shape containing the run.
  • block_ordinal -- 0-based paragraph-block index within that shape.
  • run_index -- 0-based run index within the block.
  • text -- the run's text (for human legibility of the shift).
  • before / after -- the run's resolved effective-font payload (EffectiveFont.to_dict()) before and after the rebind.
RunShift(part: str, shape_id: int, block_ordinal: int, run_index: int, text: str, before: dict, after: dict)

Attributes

after

attributeafterdict

before

attributebeforedict

block_ordinal

attributeblock_ordinalint

part

attributepartstr

run_index

attributerun_indexint

shape_id

attributeshape_idint

text

attributetextstr

Functions

to_dict

functo_dict() -> dict

Return this run change as a JSON-ready dict.

Returns

dict

On this page