1. A method for processing data of a scanned book comprising a plurality of pages, the method comprising: obtaining page image data from a page; segmenting and recognizing the page image data to obtain locations of boxes corresponding to respective characters and text codes for the respective characters; obtaining aggregated character line information for a line of characters; and adjusting the boxes in accordance with the obtained aggregated character line information.