Kajona\Pdf\System\Pdf::addTableOfContents

Add a table of contents.

To specifiy the position within the document, use the second param. Every bookmark added via addBookmark() will be added.