paper-pptxAPI referencediff
BulletShift
paper-pptx 0.2.0 API reference
One paragraph whose resolved bullet changed between the two decks.
Bullets live only in formatting, so a list losing its bullets changes no text and no
field marker: text_changes stays empty while the slide visibly loses every glyph.
This is the facet that reports it.
Paragraphs qualify only when their exact text-and-field value is unique on both sides and lies in the canonical unchanged prefix or suffix. Repeated or changed-region paragraphs are skipped rather than paired by position.
Fields:
part-- partname of the slide the paragraph lives on.shape-- stable shape identity plus current display name.before_location/after_location-- container-local paragraph locations.text-- the unchanged paragraph's literal text.before/after-- the resolvedbullet,bullet_fontandbullet_sizepayloads from :func:pptx.inspect.effective_paragraph_formaton each side.
BulletShift(part: str, shape: ShapeRef, before_location: dict, after_location: dict, text: str, before: dict, after: dict)Attributes
after
attributeafterdictafter_location
attributeafter_locationdictbefore
attributebeforedictbefore_location
attributebefore_locationdictpart
attributepartstrshape
attributeshapeShapeReftext
attributetextstrFunctions
to_dict
functo_dict() -> dictReturn this bullet change as a JSON-ready dict, before and after values included.
Returns
dict