code: def create_text_from_lines(
      lines, linebreak="\n", linejoin=" ", strip=True
  ):
      """Create a multi-line text string from text boxes <lines> (generated by put_texts_in_lines)"""
      text = ""
      for l in lines:
          text += join_texts(l, glue=linejoin, strip=strip) + linebreak
  
      if strip:
          text = text.strip()
  
      return text
  
file_path: pdftabextract/pdftabextract/textboxes.py
imports: import math
  import numpy
  from pdftabextract.common import update_text_dict_pos, sorted_by_attr, DIRECTION_HORIZONTAL, DIRECTION_VERTICAL, SKEW_X, SKEW_Y
  from pdftabextract.geom import pt, vecrotate
label_desc: Use image node_id 5 for calling a global function with example usage: create_text_from_lines(lines, linebreak, linejoin, strip) and returns: text