Poppler CPP 24.04.0
Public Member Functions | List of all members
poppler::toc Class Reference

#include "poppler/cpp/poppler-toc.h"

Inheritance diagram for poppler::toc:
Inheritance graph
[legend]

Public Member Functions

 ~toc ()
 
toc_itemroot () const
 

Detailed Description

Represents the TOC (Table of Contents) of a PDF document.

The TOC of a PDF document is represented as a tree of items.

Constructor & Destructor Documentation

◆ ~toc()

toc::~toc ( )

Destroys the TOC.

Member Function Documentation

◆ root()

toc_item * toc::root ( ) const

Returns the "invisible item" representing the root of the TOC.

This item is special, it has no title nor actions, it is open and its children are the effective root items of the TOC. This is provided as a convenience when iterating through the TOC.

Returns
the root "item"