Hi
I am trying to search and highlight selected text . According to documentation i tried the following code , and FindText() takes to the page where search text exist , but it;s not highlighting , so to to highlight , i tired to get Quads using getQuads() method , even though search text is found getQuads() method returns null .
the code
mPdfViewCtrl.FindText("note",true,false,false,false);
mPdfViewCtrl.TextSearchEnded += (object sender, PDFViewCtrl.TextSearchEndedEventArgs e) => {
Toast.MakeText(mPdfViewCtrl.Context, "Search Ended !" + e.Result , ToastLength.Short).Show();
};
int noOfPages = mPdfViewCtrl.GetPageCount();
String noofPagesText = "";
Toast.MakeText(mPdfViewCtrl.Context, "Number of pages" + noOfPages , ToastLength.Short).Show();
for (int i = 0; i <= noOfPages; i++) {
PDFViewCtrl.Selection pdfSelections = mPdfViewCtrl.GetSelection (i);
QuadPoint[] quads = pdfSelections.GetQuads ();
if (pdfSelections.GetAsUnicode () != "") {
Toast.MakeText(mPdfViewCtrl.Context, "PDF selections" + pdfSelections.GetAsUnicode() , ToastLength.Short).Show();
}
if (quads.Length != 0) {
Toast.MakeText(mPdfViewCtrl.Context, "quads - " + quads.Length , ToastLength.Short).Show();
}
}
please advice me on this problem
Thanks in advance