I have got a PDF, and I would like to add an additional page to it, ideally as the first page. I have been able to achieve this with PDFSharp, but the problem is that the original PDF contains bookmarks, which I would like to maintain. Using PDFSharp seems to delete the bookmarks, or at least I am not aware of any options or commands to save the original TOC with the newly created PDF that contains the additional page.
Does anybody know how to keep the TOC with PDFSharp or maybe any other .NET libraries, ideally free ones, that would allow me to add a page to an existing PDF and to maintain its bookmarks? (I am aware that adding a page as the first page would invalidate the page refs, that's why adding a page as the last page is also ok.)
Thanks all!