A component that generates a Table of Contents for an existing PDF. You can provide the headers in a list structure; if you don’t, it will attempt to auto-detect headers based on the largest font size. For better pagination detection use the Ultimate PDF to generate the base PDF.
If the PDF have a cover then apply the TOC Page number to 2, headers will be detected only after the TOC page.
iText
Affero General Public License (AGPLv3)
https://itextpdf.com/how-buy/AGPLv3-license
https://opensource.org/license/agpl-v3/