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
| Name | Type | Access | Description |
|---|---|---|---|
title | str | Read | Gets the title. |
page_index | int | Read | Gets the page index. |
is_bold | bool | Read | Gets the is bold. |
is_italic | bool | Read | Gets the is italic. |
children | list[OutlineItem] | Read | Gets the children. |
Methods
| Signature | Description |
|---|---|
__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) → OutlineItem | Append item as a child of this outline entry and return it. |