title: In Reportlab what does splitbyRows does?
body: <p>Trying to add one big table into PDF using reportlab. But the content is crossing across the left and right margin of page. </p>
  
  <p>Even if i set the columnWidth to get the fixed width of table, the content looks too fuzzy. All the cell contents are in flowable format. </p>
  
  <p>Can I solve using splitbyRows?? Or what is the best approach? </p>
  
  <pre><code>    from reportlab.platypus import SimpleDocTemplate, Table, TableStyle, Image, Paragraph, Spacer,  LongTable
      from reportlab.lib.pagesizes import A4, inch, cm
      import numpy as np
      from reportlab.lib import colors
  
      # Pdf design parameters
      FONT_STYLE_BOLD = 'Helvetica-Bold'
      FONT_STYLE = 'Helvetica'
  
      def addtable(col, row, table_data):
          """
          Add table to the pdf
          """
          # Defininig table structure(nos of rows, nos of columns, size of rows, size of columns)
          #tableobj = Table(table_data, col * [3.26 * inch], row * [0.25 * inch], hAlign='LEFT')
          tableobj = Table(table_data, colWidths = [1 * inch] * col, splitByRow=2, rowSplitRange=(5,20))
  
          # Defining Table style
  
          tablestyle = [('FONTNAME', (0, 0), (0, -1), FONT_STYLE),
                        ('FONTNAME', (0, 0), (-1, 0), FONT_STYLE_BOLD),
                        ('BACKGROUND', (0, 0), (-1, 0), colors.lightgrey),
                        ('INNERGRID', (0, 0), (-1, -1), 0.25, colors.grey),
                        ('RIGHTPADDING', (0, 1), (-1, -1), 3),
                        ('BOX', (0, 0), (-1, -1), 0.25, colors.grey),
                        ('FONTSIZE', (0, 0), (-1, -1), 9),
                        ('ALIGN', (1, 0), (-1, -1), 'CENTER'),
                        ]
  
  
          tableobj.setStyle(TableStyle(tablestyle))
          elements.append(tableobj)
  
  
      elements = []
  
      clust_data = [["Name", "Date", "Address", "CONTACT DETAILS", "JOB", "DESCRIPTION", "MISC", "JOB", "DESCRIPTION", "MISC", "OTHER", 'FIELD11', 'FIELD22'],
      ["Name", "Date", "Address", "CONTACT DETAILS", "JOB", "DESCRIPTION", "MISC", "JOB", "DESCRIPTION", "MISC", "OTHER", 'FIELD11', 'FIELD22'],
      ["Name", "Date", "Address", "CONTACT DETAILS", "JOB", "DESCRIPTION", "MISC", "JOB", "DESCRIPTION", "MISC", "OTHER", 'FIELD11', 'FIELD22'],
      ["Name", "Date", "Address", "CONTACT DETAILS", "JOB", "DESCRIPTION", "MISC", "JOB", "DESCRIPTION", "MISC", "OTHER", 'FIELD11', 'FIELD22'],
          ]
  
      addtable(len(clust_data[0]), len(clust_data), clust_data)
  
      doc = SimpleDocTemplate('table.pdf', pagesize=A4)
      doc.topMargin = .13 * inch
      doc.build(elements)
  
      del elements[:]
  </code></pre>