I also need to know that how can i highlight the Search Text.
PageView.java from MuPDF:
private static final int HIGHLIGHT_COLOR = 0x802572AC;
...
public void setPage(int page, PointF size) {
...
if (!mIsBlank && mSearchBoxes != null) {
paint.setColor(HIGHLIGHT_COLOR);
for (RectF rect : mSearchBoxes)
canvas.drawRect(rect.left*scale, rect.top*scale,
rect.right*scale, rect.bottom*scale, paint);
}
}
, :
new SearchTask(context, mupdfCore).go("searchText", 1, 0, -1);