code: def _process_layout(self, layout):
          
          # Here we just group text into paragraphs
          elements = []
          for lt_obj in layout:
              if isinstance(lt_obj, LTTextBox) or isinstance(lt_obj, LTTextLine):
                  elements.append(Paragraph(lt_obj.get_text().strip()))
              elif isinstance(lt_obj, LTFigure):
                  # Recursive...
                  elements.extend(self._process_layout(lt_obj))
          return elements
docs: Process an LTPage layout and return a list of elements.