I have PDF file like this https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf which has one item defined in the bookmarks section (or Outline)
What I want to do is to prepend this file with page labeled "Table of contents" which would contain link to Dummy PDF File roughly like this
please note the outline can get very long and spanning multiple pages. So far I was able to read the outline from existing document when opening it with PdfReader.Open(document, PdfDocumentOpenMode.Import);
and than reading property Outline
than with MigraDoc I'm able to create new document which renders Table of Contents and then joins those two documents together, but the links are not there and I'm not sure how to change my approach to be able to add them.
I also saw this but was not able to use it (I would like to use Migradoc for generating TOC) Add MigraDoc Table of Contents to PDFsharp PDF
Any ideas how I should adjust my approach?