| Total Complexity | 2 | 
| Total Lines | 19 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | def get_AllTextLines(self, region_order='document', textline_order='top-to-bottom'):  | 
            ||
| 2 | """  | 
            ||
| 3 | Return all the TextLine in the document  | 
            ||
| 4 | |||
| 5 | Arguments:  | 
            ||
| 6 |         region_order ("document"|"reading-order"|"reading-order-only") Whether to | 
            ||
| 7 | return regions sorted by document order (``document``, default) or by  | 
            ||
| 8 | reading order with regions not in the reading order at the end of the  | 
            ||
| 9 | returned list (``reading-order``) or regions not in the reading order  | 
            ||
| 10 | omitted (``reading-order-only``)  | 
            ||
| 11 |         textline_order ("top-to-bottom"|"bottom-to-top"|left-to-right"|"right-to-left") | 
            ||
| 12 | The order of text lines within a block (not currently used)  | 
            ||
| 13 | """  | 
            ||
| 14 | # TODO handle textLineOrder  | 
            ||
| 15 | ret = []  | 
            ||
| 16 | for reg in self.get_AllRegions(['Text'], order=region_order):  | 
            ||
| 17 | ret += reg.get_TextLine()  | 
            ||
| 18 | return ret  | 
            ||
| 19 | |||
| 20 |