The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I'm trying to figure out how to create a merged PDF file that has a cover page containing a table of contents of the merged documents with links to the first page of each merged document.
I looked at the PdfDocumentLinkAnnotation class but I don't know how to get destination for each of the merged files. I'm merging about 30 PDF files with PdfDocument.Merge(files).
SPSelvakumar P Syncfusion Team December 6, 2010 11:39 AM UTC
Hi David,
Thank you for using Syncfusion Products.
We can create Table of contents using Essential PDF. We have attached the sample using TOC. Please got through the sample and let us know if you have any questions.
ADAdministrator Syncfusion Team December 6, 2010 11:18 PM UTC
In your sample, you use doc.Pages.Add() which returns a PdfPage which you then can use to create a PdfDestination.
But in my case I'm merging PDFs and the Merge method does not return the inserted document, rather it returns the merged document so the destination would always point to the first page.
SPSelvakumar P Syncfusion Team December 7, 2010 06:36 AM UTC
Hi Dave,
Please download the sample, in which we have merged the documents and added the table of contents to it. Please download the same from the link below.
I am trying to achieve the same thing (merge documents, create a TOC with internal navigation links to the individual merged documents).
I am unable to download the mentioned sample.
Please advise.
Best regards,
Johannes
KCKarthikeyan Chandrasekar Syncfusion Team August 9, 2018 11:37 AM UTC
Hi Johannes,
We have created the custom sample for “Create TOC with internal navigation links to the individual merged documents”. Please find the sample for the same from below location,