|
|
Hi, HighlightedTextInfo is SortedDictionary where the key is a zero-based page index. So the code that getting highlighted text may be like following Code:
if (HighlightedTextInfo.ContainsKey(pageIndex))
{
var textInfo = Document.Pages[pageIndex].Text.GetTextInfo(HighlightedTextInfo[pageIndex].CharIndex, HighlightedTextInfo[pageIndex].CharsCount);
string text = textInfo.Text;
}
|
|
|
Greetings everyone,
Is there a way to get the HighlightedTextInfo from an specific page?
The only method that I found is to get HighlightedTextInfo from the PdfViewer object, and that will get me the HighlightedTextInfo from the whole document.
Looping in the returned HighlightInfo objects I can get the CharIndex but it is page relative and there is no property telling me the PageIndex in the HighlightInfo.
Thank you, Ed
|
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close