Setting table of contents by TPDF?

Hello,

Is there any way to set table of contents by TPDF class ?
There is an example code in
https://root.cern.ch/doc/master/classTPDF.html

but I would like to know how to define table of contents when I call TPDF class and initialize the pdf file by it.

Thanks,
Hidemitsu Asano


_ROOT Version:6.16.00
_Platform:ubuntu 18.04
Compiler: Not Provided


The way to proceed is exactly as explained in the link you are referring to. There is no other way.