1. A method for creating a flexible structure description, the method comprising: receiving an image of a document of a particular document type that contains a table; receiving an entry describing an item in the table; searching for title elements based upon the entry; detecting data fields and anchor elements for the entry; generating, using a processor, a flexible structure description for the particular document type that includes a set of search elements for each data field in the image of the document and the title elements; matching the flexible structure description against the image; and extracting data from the image based upon the matching of the flexible structure description against the image.