Microsoft 365 Roadmap
RM486859SharePoint: OneDrive and SharePoint – Use table of contents in PDF
Summary
OneDrive for the web and SharePoint Online can display a table of contents if it’s already in your PDF. You can select the line item in the table of contents to jump directly to the location of that item in the page.