Outline (アウトライン)#
The document outline (otherwise known as "bookmarks") is a property of Document (ドキュメント) (see Document.outline). If not None, it stands for the first outline item of the document. Its properties in turn define the characteristics of this item and also point to other outline items in "horizontal" or downward direction. The full tree of all outline items for e.g. a conventional table of contents (TOC) can be recovered by following these "pointers".
メソッド / 属性 |
短い説明 |
|---|---|
次の項目は下向き |
|
同じレベルの次の項目 |
|
ページ番号(0から始まる) |
|
タイトル |
|
アウトラインのターゲットをさらに指定する文字列 |
|
ドキュメントの外部のターゲットかどうか |
|
サブアウトラインが開いているか折りたたまれているか |
|
宛先の詳細オブジェクトを指す |
クラスAPI
- class Outline#
- down#
次の階層のアウトライン項目です。アイテムに子要素がない場合は
Noneです。- Type:
- next#
このアイテムと同じレベルの次のアウトライン項目です。このアイテムがそのレベルで最後の場合、
Noneです。- Type:
- page#
このブックマークが指すページ番号(0から始まる)です。
- Type:
int
- title#
アイテムのタイトル、または
Noneの文字列です。- Type:
str
- is_open#
サブアウトラインが展開されるべきか(
True)折りたたまれるべきか(False)を示すインジケーターです。この情報はPDFリーダーソフトウェアによって解釈されます。- Type:
bool
- is_external#
対象が現在のドキュメントの外部(
True)かどうかを示すブール値です。- Type:
bool
- uri#
リンクの対象を指定する文字列。このプロパティの意味は、プロパティ
is_externalと一緒に評価されるべきです。is_externalis true:uripoints to some target outside the current PDF, which may be an internet resource (uristarts withhttp://or similar), another file (uristarts withfile:orfile://) or some other service like an e-mail address (uristarts withmailto:).is_externalis false:uriwill beNoneor point to an internal location. In case of PDF documents, this should either be #nnnn to indicate a 1-based (!) page number nnnn, or a named location. The format varies for other document types, for example "../FixedDoc.fdoc#PG_2_LNK_1" for page number 2 (1-based) in an XPS document.
- Type:
str
