摘要 |
The embodiments of the present disclosure discloses a method, a terminal and an electronic device for processing an e-book document, the method includes: obtaining (101) an e-book document; dividing (102) content of the e-book document into a plurality of segments in accordance with a preset segmentation manner; composing (103) the plurality of segments into an ordered segment group; selecting (104) one segment from the segment group as a current segment; parsing (105) the content of the current segment to generate layout data; and generating (106) a page image in accordance with the layout data. Each time when operating an e-book, only one segment of the e-book document is parsed, and the data amount to be processed during operation each time is only the data amount of one segment. In this way, the data processing efficiency may be raised, thereby shortening the time to read the e-book. Moreover, when the mobile terminal processes one segment of the e-book document, the data amount to be processed either in parsing operation or in subsequent page image generation operation are relatively small, thus reducing the memory of the mobile terminal occupied by the e-book. |