OutlineItem

Overview

OutlineItem is a class in Aspose.PDF FOSS for Python.

A single bookmark entry in a PDF outline tree.

This class provides 2 methods for working with OutlineItem objects in Python programs. Available methods include: __init__, add. All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package. Properties: children, is_bold, is_italic, page_index, title.

Properties

NameTypeAccessDescription
titlestrReadGets the title.
page_indexintReadGets the page index.
is_boldboolReadGets the is bold.
is_italicboolReadGets the is italic.
childrenlist[OutlineItem]ReadGets the children.

Methods

SignatureDescription
__init__(title: str, page_index: int, is_bold: bool, is_italic: bool)Calls init(title, page_index, is_bold, is_italic) on this OutlineItem instance.
add(item: OutlineItem)OutlineItemAppend item as a child of this outline entry and return it.

See Also