I'm using a textextractor to select text from a rect.
Unfortunatly, the extracted text isn't always correct, it sometimes
adds an extra character at the end or cuts off a character in the beginning
I can see that the rectangle is correct because i highlight it...
what i'm doing:
TextExtractor txtExtractor = new TextExtractor();
txtExtractor.Begin(page, hightlightAnnot.GetRect(),TextExtractor.ProcessingFlags.e_remove_hidden_text);
hightlightAnnot.SetContents(txtExtractor.GetAsText());
string text = hightlightAnnot.GetContents();