Misses first match in list of terms

using this code:

  bool found = false;

 found = document.FindText(theTerms, i, TextSearchOptions.WholeWords, out matches);

 foreach (var match in matches)

{

     tokenSource.Token.ThrowIfCancellationRequested();

      RectangleF rectangleF = match.Bounds;

     PdfRectangleAnnotation annotation = new PdfRectangleAnnotation(rectangleF, "rectangle");


     //Add the annotation to the page.

     page.Annotations.Add(annotation);

}

using the attached file, list of string terms used = Friedman, Shapiro

The results do not get the first Friedman


Attachment: medreport_e707461b.zip

4 Replies

IJ Irfana Jaffer Sadhik Syncfusion Team August 30, 2022 02:55 PM UTC

Hi Dave,

On further analyzing your requirement, we found that you are searching for a text "Friedman" instead of "Freidman". we have tried to reproduce the reported issue but the text are properly redacted but with slight changes in annotation bounds while redacting is identified. we consider this as the issue and will provide the validation details on Sept 2 , 2022.


Please find the output screenshot below,



Please let us know if you need any further assistance in this.



Regards,

Irfana J.





DA Dave August 30, 2022 05:54 PM UTC

please notice these errant marks, they should be amoxicillin highlighted, i think friedman issue was from another search, i have 2 lists, search terms which are exact matches, and close matches list which i generate from the initial search and pass in as a list of terms. 



the second bounds set is the close match list, notice the amoxicillin, 3rd line, 4th line, 5th line is way to the right, b



GK Gowthamraj Kumar Syncfusion Team August 31, 2022 10:59 AM UTC

Hi Dave,


Find text result returns a incorrect bounds for this text search (Freidman)

Currently, we are validating on this and we will update the further details on September 2nd 2022.

the second bounds set is the close match list, notice the amoxicillin, 3rd line, 4th line, 5th line is way to the right, b

 

We are already working on this reported “Annotation not added properly based on the find text result in a redacted same line” issue and will provide further details on September 1, 2022

 

Forum link: http://www.syncfusion.com/forums/177009/redaction-markings-not-showing-when-printing?reply=SfHAWK

 

For this issue, we will update the validation details in that forum. 


Regards,

Gowthamraj K



GK Gowthamraj Kumar Syncfusion Team September 2, 2022 02:45 PM UTC

Hi Dave,

On our further analysis, the find text result for “Freidman” search are returns the bounds properly in our latest version(20.2.0.46)

For this annotation misplaced issue, we will update the validation details in that forum. 

Forum link: http://www.syncfusion.com/forums/177009/redaction-markings-not-showing-when-printing?reply=SfHAWK


Please let us know, if you need further assistance on this.


Regards,

Gowthamraj K


Loader.
Up arrow icon