1. A computer-implemented method for form generation, comprising: automatically processing a captured image of a hard-copy form to identify form fields in the image and text characters associated with each of the form fields; determining geometrical coordinates of the form fields that define respective filling areas for entry of information into the fields; applying optical character recognition (OCR) to the text characters in order to identify form field names; determining associations between the form field names and object names of corresponding data objects; combining the geometrical coordinates of the filling areas of the form fields with the object names of the data objects corresponding to the form fields to generate a form definition; automatically reading values of the data objects from a data repository responsively to the determined associations in the form definition, and outputting a copy of the form in which the values have been filled into the filling areas of the form fields; and wherein the hard-copy form is produced by a first ERP system, and wherein the form definition is part of a second ERP system that replaces the first ERP system.