PDFreactor can generate tables of contents, including automatic page numbers and leaders. Further generated content, like cross references (dynamically displaying the page number and title of the target chapter) and numbered headings, is also supported.