def searchFor(page, text, hit_max = <NUM_LIT:16>, quads = False):
CheckParent(page)<EOL>dl = page.getDisplayList()         <EOL>tp = dl.getTextPage()              <EOL>rlist = tp.search(text, hit_max = hit_max, quads = quads)<EOL>dl = None<EOL>tp = None<EOL>return rlist<EOL>
Search for a string on a page.

    Args:
        text: string to be searched for
        hit_max: maximum hits
        quads: return quads instead of rectangles
    Returns:
        a list of rectangles or quads, each containing one occurrence.