Paper Office
paper-docxAPI referencesection

Sections

paper-docx 0.2.0 API reference

Sequence of Section objects corresponding to the sections in the document.

Supports len(), iteration, and indexed access.

Sections(document_elm: CT_Document, document_part: DocumentPart)

Functions

__getitem__

func__getitem__(key: int | slice) -> Section | List[Section]
paramkeyint | slice

Returns

docx.section.Section | typing.List[docx.section.Section]

__iter__

func__iter__() -> Iterator[Section]

Returns

typing.Iterator[docx.section.Section]

__len__

func__len__() -> int

Returns

int

On this page