Closed BobCFD closed 7 years ago
Hi @BobCFD ,
Could you provide me the the code for the Search Text and Highlight it, If you have implemented it? I am also facing problem in this.
Thanks
I've implemented markers (i.e. highlights) and a PdfSearchManager
that uses these to simplify searching through the PDF document. I've also implemented a search dialog in the demo application which uses this class.
Hi, I want to add the search text and highlight the PdfMatches, I add some code to the PdfDocument.Render to draw rectangle on the PdfMatch.Location. But the result is the rectangle is not in the search txt's Location. could you please help me with this? Thanks for the code and good luck!
here is the example:
var point = new NativeMethods.POINT(); NativeMethods.SetViewportOrgEx(dc, bounds.X, bounds.Y, out point);
if (_highlights.ContainsKey(pageIndex))//_highlights is the sorted search result PdfMatches {