Paper Office
paper-pptxAPI referencediff

SlideChange

paper-pptx 0.2.0 API reference

Within-slide deltas for one id-matched slide pair. Empty facets are omitted from the payload, so an all-empty change never appears in slide_changes.

SlideChange(slide_id: int, shapes_added: Tuple[ShapeRef, ...] = (), shapes_removed: Tuple[ShapeRef, ...] = (), geometry_changes: Tuple[dict, ...] = (), images_replaced: Tuple[ShapeRef, ...] = (), chart_data_changes: Tuple[dict, ...] = (), table_structure_changes: Tuple[dict, ...] = (), text_changes: Tuple[dict, ...] = (), notes_change: Optional[dict] = None, effective_shifts: tuple = (), bullet_shifts: tuple = ())

Attributes

bullet_shifts

attributebullet_shiftstuple
= ()

chart_data_changes

attributechart_data_changesTuple[dict, ...]
= ()

effective_shifts

attributeeffective_shiftstuple
= ()

geometry_changes

attributegeometry_changesTuple[dict, ...]
= ()

images_replaced

attributeimages_replacedTuple[ShapeRef, ...]
= ()

is_empty

attributeis_emptybool

True when nothing on this slide changed. Check it before adding the slide to a report.

notes_change

attributenotes_changeOptional[dict]
= None

shapes_added

attributeshapes_addedTuple[ShapeRef, ...]
= ()

shapes_removed

attributeshapes_removedTuple[ShapeRef, ...]
= ()

slide_id

attributeslide_idint

table_structure_changes

attributetable_structure_changesTuple[dict, ...]
= ()

text_changes

attributetext_changesTuple[dict, ...]
= ()

Functions

to_dict

functo_dict() -> dict

Return this slide's changes as a JSON-ready dict, omitting the categories that are empty.

Returns

dict

On this page