1. A computer-implemented method of classifying elements of a document, comprising: receiving a data file defining the document, wherein the document has at least one page and a plurality of elements, wherein a type, location, and size of each element is defined by the file; classifying at least one selected element of a selected page into one of a plurality of categories based on at least one of the type, location, size, and dimension of the selected element, wherein the classifying comprises determining whether a location of a center of an element box containing the selected element is within a pre-determined threshold distance from an edge of the selected page and assigning the selected element to a background element category in response to a determination that the location of the center of the element box containing the selected element is within the pre-determined threshold distance from the edge of the selected page; generating a classification record comprising an indication of the category into which each of the selected elements is respectively classified; and storing the classification record in a computer-readable storage medium.