An Automated Generation of User Interface Form for Electronic Library based on Document Image Understanding