Master TOC for Multipage PDF Export

Hi guys,
I am wondering whether it’s possible to have a master TOC for multipage PDF export. By Master I mean the TOC has to include the titles of all pages and their TOC if any.

Take the following tree structure for example. They are the titles for each page

  • Root
    – Page 1
    – Page 2
    – Page 3

In each page, the TOC looks like this

  • Page 1
    – Heading 1
    — Subheading
    – Heading 2
    — Subheading
    — Subheading

The desired master TOC is like this:

  • Root
    – Page 1
    — Heading 1
    ---- Subheading
    — Heading 2
    ---- Subheading
    ---- Subheading
    – Page 2
    – Page 3

Will this be possible? If not, where can I find relevant documentations about customizing it?

Hi. Are you referring to http://extensions.xwiki.org/xwiki/bin/view/Extension/Multipage%20PDF%20Export ?