Paper Office
paper-pptxAPI referenceedit

ReplaceResult

paper-pptx 0.2.0 API reference

Outcome of a text replacement.

Fields:

  • replacements -- total number of occurrences replaced across the deck.
  • blocks -- POST-edit :class:pptx.inspect.BlockAnchor for each block that was touched (their content hashes reflect the new text).
ReplaceResult(replacements: int, blocks: Tuple[BlockAnchor, ...] = tuple())

Attributes

blocks

attributeblocksTuple[BlockAnchor, ...]
= field(default_factory=tuple)

replacements

attributereplacementsint

Functions

to_dict

functo_dict() -> dict

Return the replace result as a JSON-ready dict stamped with its schema and version.

Returns

dict

On this page