'PdfActions are not caried over to the merged document using iText7

I have two documents cover-page and indexes. Indexes page has PdfActions for each title, the problem I am having is when I merge the two documents the PdfActions from Indexes page do not work on the resulting merged document. I have used PdfMerger and also tried to use PDF document's CopyPagesTo() method and none of them work. So, for now my questions are:

  1. Is it possible in iText carryover PdfActions from one document to the resulting merged document?
  2. If yes than how?

Thanks in advance!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source