(self, start_row=None, stop_row=None, pagenum=None, wrap=True, as_type=text_type)
return output
Retrieve consecutive rows of text on page `pagenum`,
        as tuple of bytes (raw) / tuple of unicode (dbcs).
        Each row is one (bytes or unicode) string and ends at the row length.
        So poked characters may not be included.
        Wrapped lines are output as a single row if `wrap=True`.
Retrieve consecutive rows of text on page `pagenum`,
        as tuple of bytes (raw) / tuple of unicode (dbcs).
        Each row is one (bytes or unicode) string and ends at the row length.
        So poked characters may not be included.
        Wrapped lines are output as a single row if `wrap=True`.
Retrieve consecutive rows of text on page pagenum as tuple of bytes ( raw ) / tuple of unicode ( dbcs ) . Each row is one ( bytes or unicode ) string and ends at the row length . So poked characters may not be included . Wrapped lines are output as a single row if wrap = True .
def get_text(self, start_row=None, stop_row=None, pagenum=None, wrap=True, as_type=text_type):
        """
        Retrieve consecutive rows of text on page `pagenum`,
        as tuple of bytes (raw) / tuple of unicode (dbcs).
        Each row is one (bytes or unicode) string and ends at the row length.
        So poked characters may not be included.
        Wrapped lines are output as a single row if `wrap=True`.
        """
        if pagenum is None:
            pagenum = self._vpagenum
        page = self._pages[pagenum]
        chars = page.get_chars(as_type)
        if start_row is None:
            start_row = 1
        if stop_row is None:
            stop_row = len(chars)
        output = tuple(
            as_type().join(_charrow[:page.row_length(_row0 + 1)])
            for _row0, _charrow in enumerate(chars)
            if start_row <= _row0 + 1 <= stop_row
        )
        if wrap:
            prev_wraps = [False] + list(
                page.wraps(_row)
                # don't include the stop_row as we need previous-row wraps anyway
                for _row in range(start_row, stop_row)
            )
            wrapped_output = []
            for row, prev_row_wrap in zip(output, prev_wraps):
                if prev_row_wrap:
                    wrapped_output[-1] += row
                else:
                    wrapped_output.append(row)
            output = tuple(wrapped_output)
        return output
def get_text ( self , start_row = None , stop_row = None , pagenum = None , wrap = True , as_type = text_type ) : if pagenum is None : pagenum = self . _vpagenum page = self . _pages [ pagenum ] chars = page . get_chars ( as_type ) if start_row is None : start_row = 1 if stop_row is None : stop_row = len ( chars ) output = tuple ( as_type ( ) . join ( _charrow [ : page . row_length ( _row0 + 1 ) ] ) for _row0 , _charrow in enumerate ( chars ) if start_row <= _row0 + 1 <= stop_row ) if wrap : prev_wraps = [ False ] + list ( page . wraps ( _row ) # don't include the stop_row as we need previous-row wraps anyway for _row in range ( start_row , stop_row ) ) wrapped_output = [ ] for row , prev_row_wrap in zip ( output , prev_wraps ) : if prev_row_wrap : wrapped_output [ - 1 ] += row else : wrapped_output . append ( row ) output = tuple ( wrapped_output ) return output