title: reportlab line spacing and fitting of a Paragraph in a table
body: <p>I'm using reportlab 3.1.44 in python 2.7
  Here is the code that is using a paragraph in a table.</p>
  
  <pre><code>from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer
  from reportlab.lib.styles import getSampleStyleSheet
  from reportlab.rl_config import defaultPageSize
  from reportlab.lib.units import inch
  from reportlab.lib.styles import ParagraphStyle
  from reportlab.platypus.tables import Table, TableStyle
  from reportlab.lib import colors
  from reportlab.lib.colors import Color
  
  styles = getSampleStyleSheet()
  
  
  def make_report():
      doc = SimpleDocTemplate("hello.pdf")
      story = []
      style = styles["Normal"]
      ps = ParagraphStyle('title', fontSize=20)
  
      p1 = "here is some paragraph to see in large font"
      data = []
      table_row = [Paragraph(p1, ps),\
                   Paragraph(p1, ps)\
                  ]
  
  
      data.append(table_row)
      t1 = Table(data)
      t1.setStyle(TableStyle([\
                 ('GRID', (0,0), (-1,-1), 0.25, colors.red, None, (2,2,1)),\
               ]))
      story.append(t1)
  
      doc.build(story)
  
  if __name__ == "__main__":
      make_report()
  </code></pre>
  
  <p>The are 2 problems when the font is large.</p>
  
  <ul>
  <li>the text is larger that the cell so it goes beyond the borders</li>
  <li>the spacing between the lines is too small</li>
  </ul>
  
  <p>How can I fix this problem?</p>