Paper Office
paper-pptxAPI referenceinspect

TextInspection

paper-pptx 0.2.0 API reference

Inspection payload for one slide. .to_dict() is deterministic (golden-tested).

TextInspection(part: str, blocks: Tuple[TextBlock, ...] = tuple())

Attributes

blind_region_count

attributeblind_region_countint

Number of blocks whose effective values are unresolvable by design (see TextBlock).

blocks

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

part

attributepartstr

Functions

to_dict

functo_dict() -> dict

Return the whole inspection as a JSON-ready dict stamped with its schema name and version.

Hand this to anything outside Python that needs the text of a part.

Returns

dict

On this page