COA: As we are having the existing pdf, we need add the bookmarks and highlight the specific word in the page when clicked on bookmark.
Here I tried with this code
gfx = XGraphics.FromPdfPage(pages[idx]);
string destText = "DestPage" + idx;
gfx.DrawString("hello", font, XBrushes.Black, new XRect(0, 0, pages[idx].Width, pages[idx].Height), XStringFormats.BottomLeft);
gfx.DrawRectangle(XPens.Aquamarine, new XRect(0, 0.20, 200, 100));
var bookMark = outline.Outlines.Add(destText, pages[idx], true);
bookMark.DestinationPage = pages[idx];
But In this, let's have input of bookmarkName and bookMarkValue, here
when I click on the bookmark it should go to the specific bookmarkValue destination
As of now when I click on the bookmark ==> goto ==> specific page(not for specific content/word(bookmarkValue), which is present in the page)
As I need this functionality, could you please help me with this