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

@nightcoder

Would you please share some more details like complete code snippet and sample PDF document for our reference? We will test the scenario in our environment and address it accordingly.

Please close this. I have code now that is working using absorber.

@nightcoder

Its nice to hear that your issue has been sorted out. Please geel free to create a new topic in case you need further assistance.