Preserve DocumentLinkAnnotations on merging documents

We currently create single PDF's with a ToC etc... by merging multiple other PDF's. If any of the merged PDF's has a table of contents and uses DocumentLinkAnnotations to link the ToC to the relevant page they are lost upon creating the new PDF via merge. Is there any way to preserve these so they still link to the correct page?


Thanks, Martin



3 Replies

SV Surya Venkatesan Syncfusion Team March 14, 2022 05:27 PM UTC

Hi Martin,


We have created a sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/PDF_Sample_Grid_DocLinkAnnot419485294 to achieve your requirement of adding documentLink annotation in PdfGrid cell to create PDF document and then merge that PDF with new PdfDocument.


Kindly try the attached sample and let us know the results.


Regards,

Surya V



MA Martin March 14, 2022 07:51 PM UTC

Thank you, the document.EnableMemoryOptimization = true setting fixed the issue.



GK Gowthamraj Kumar Syncfusion Team March 15, 2022 05:43 AM UTC

Hi Martin,

We are glad that the provided details resolved the issue in your end. Please let us know if you need any further assistance on this.
 
 
Regards, 
Gowthamraj K 


Loader.
Up arrow icon