Have you tried using LinkPageNumber property to link to a particular page in a PDF document?
Moreover, as you’re using Aspose.Pdf to create this TOC in the first page, so I would move this thread to the related forum and my colleague would be able to further help you out on this.
Hello Mohit,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thanks for considering Aspose.
When generating a PDF document using Aspose.Pdf for .NET, if you need to create links towards the pages with in the same document, you need to provide the reference of Text paragraphs. In your case, as you're using Aspose.Pdf.Kit to merge the documents, you need to use Aspose.Pdf.Kit to accomplish your requirement.
I'm afraid you cannot add a text segments to an existing PDF document while assigning any particular ID to it.
For your requirement of generating a TOC for existing PDF document, you may try using the CreateLocalLink method of PdfContentEditor class in Aspose.Pdf.Kit.