1. A method of generating a template for automatic data capture, the method comprising: determining, with at least one processor, locations of a plurality of data fields in a first document, wherein the plurality of data fields are identified based, at least in part, on structured data associated with the first document; identifying at least one second document that includes the plurality of data fields in locations similar to those determined for the first document, wherein the first document and the at least one second document form a set of documents; determining locations of a plurality of anchorboxes describing common text elements within the set of documents; and generating the template for automatic data capture, wherein the template describes locations of the plurality of anchorboxes and locations of the plurality of data fields on the template.