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; wherein the adjusting comprises: determining the height of the line of characters in accordance with the aggregated character line information; adjusting the box of each character to have the same height as the determined height of the line of characters; and adjusting the height of the line of characters based on heights of both a previous line and a subsequent line.