Searching document for TOC page number

I am trying to find text in document through absorber.
But continue to get no result by using the examples I have found online.
Is this because of the way I am inserting the paragraph?

string row = $"<tr style=\"vertical-align: text-bottom;\"><th style=\" text-align: right;width: 30px;margin-left: 0;font-size:9px;font-family:'Arial Narrow';\">{fixedNumber}</th><th style=\"margin-left:50pxfont-size:9px;font-family:Georgia;\">{heading}</th></tr>";
        string htmlFragment = $"<table>{row}</table>";
        Doc.Pages[currentPage].Paragraphs.Add(new Aspose.Pdf.HtmlFragment(htmlFragment));

This topic has been moved to the related forum: Searching document for TOC page number - Free Support Forum - aspose.com