Document feature recognition utilites