Create merged PDF file with TOC and links

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).

Thanks,
-Dave




5 Replies

SP Selvakumar 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.

Sample:
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=747461110431534.zip

Regards,
Selvakumar.



AD Administrator 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.



SP Selvakumar 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.

Sample:
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=97507_forum-39878328.zip

Regards,
Selvakumar.



MR MrHessellund August 8, 2018 01:51 PM UTC

Hi,

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


KC Karthikeyan 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, 

Regards, 
Karthikeyan 


Loader.
Up arrow icon