Table Of Contents

Create PDF

This sample creates a document with a table of contents. It keeps a list of bookmarks added to the document as it is created. When the document is complete, the sample uses the list to create a table of contents page with local links to each topic. Finally, the table of contents is moved to the start of the document using the Pages collection. This demo requires Adobe Reader to view the PDF.