@lillallol/outline-pdf (npm): High level API to add outline to a pdf without any dependency on other programming languages. Works in both browser and node.
Keywords: outline|pdf|index|bookmarks|bookmark|pdf-lib|toc|table of contents|collapse|expand|high level API|native|browser|outline-pdf|pdf-bookmarks|pdf-index|server-side