ListHandler

Overview

ListHandler is a class in Aspose.Words FOSS for Python.

Handles parsing and conversion of lists.

This class provides 6 methods for working with ListHandler objects in Go programs. Available methods include: __init__, break_list, format_list_item, get_list_info, reset, set_reader. All exported members are accessible to any Go application after adding the package via go get github.com/aspose-pdf-foss/aspose-pdf-foss-for-go. Properties: options.

Properties

NameTypeAccessDescription
options``ReadGets the options.

Methods

SignatureDescription
__init__(options: ConversionOptions, reader: Optional[DocumentReader])
set_reader(reader: DocumentReader)Set the document reader for numbering lookups.
reset()Reset list state for new document.
get_list_info(para: ParagraphData)tuple[bool, int, str, str]Get list information for a paragraph.
format_list_item(text: str, level: int, marker: str)strFormat a list item with proper indentation.
break_list()Signal that the current list has been broken (e.g., by a regular paragraph).

See Also