title: How to resize column to content in ReportLab?
body: <p>I am working in python using ReportLab. I need to generate report in PDF format. The data is retrieving from the database and insert into table.
  Here is simple code:</p>
  
  <pre><code>from reportlab.lib import colors
  from reportlab.lib.pagesizes import letter
  from reportlab.platypus import SimpleDocTemplate, Table, TableStyle
  from reportlab.lib.units import inch
  doc = SimpleDocTemplate("simple_table.pdf", pagesize=letter)
  elements = []
  
  data= [['00', '01', '02', '03', '04'],
         ['10', 'Here is large field retrieve from database', '12', '13', '14'],
         ['20', '21', '22', '23', '24'],
         ['30', '31', '32', 'Here is second value', '34']]
  t=Table(data)
  columnWidth = 1.9*inch;
  for x in range(5):
          t._argW[x]= cellWidth
  elements.append(t)
  doc.build(elements)
  </code></pre>
  
  <p>There are three issues:</p>
  
  <ol>
  <li>The lengthy data in a cell overlap on the other cell in a row.</li>
  <li>When I increase the column-width manually such as <code>cellWidth = 2.9*inch;</code> , the page is not visible and not scroll from Left-Right</li>
  <li>I do not know how to append the data in a cell , mean if the size of the data is large ,it should append to the next line in the same cell.</li>
  </ol>
  
  <p>How I reach this problem?</p>