How do I set and get PDF document outline
UniPDF has a GetOutlines function to produce a document outline and also AddOutlineTree function to set a new outline tree.
To learn how these functions are applied, check code examples on the following page.
https://github.com/unidoc/unipdf-examples/tree/master/outlines