Create a TOC from a PDF's Outlines collection

This sample shows how to build a table of contents from an existing PDF's Outlines collection, and insert it into the top of the document. Link annotations are associated with the TOC's entries for easy navigation.