def searchPageFor(doc, pno, text, hit_max=<NUM_LIT:16>, quads=False):
return doc[pno].searchFor(text, hit_max = hit_max, quads = quads)<EOL>
Search for a string on a page.

    Args:
        pno: page number
        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 an occurrence.