title: how to know the end of a frame to create a new one reportlab
body: <p>I built a pdf using reportlab, to have more controle one the page (colors- padding- return to line...) I created a frame.  </p>
  
  <p>the issue is that, my text is coming from a database and it need more than one page.    </p>
  
  <p>I want to know how to tell that its the end of the page/frame and I should create a new one for the rest of text.</p>
  
  <pre><code>import MySQLdb
  import pprint
  import sys
  import csv
  from datetime import *
  from reportlab.pdfgen import canvas
  from reportlab.lib.styles import getSampleStyleSheet
  from reportlab.lib.pagesizes import landscape, letter, A4
  from reportlab.lib.units import cm, inch
  from reportlab.platypus import Image, Paragraph, Frame, KeepInFrame
  
  styles = getSampleStyleSheet()
  styleN = styles['Normal']
  styleH = styles['Heading1']
  story = []
  
  
  pdf_file_name = 'report_.pdf'
  c = canvas.Canvas(pdf_file_name)
  f = Frame(0.5*inch, inch, 7*inch, 10.5*inch, showBoundary=1)
  
  story.append(Paragraph("&lt;font size='12' face='times' color='blue'&gt;&gt;SOME TEXT!&lt;/font&gt;",styleN))
  story.append(Paragraph("&lt;font size='10' face='times'&gt;SOME TEXT&lt;/font&gt;", styleN) )
  story.append( Paragraph('MORE TEXT HERE', styleN ) )
  
  f.addFromList(story,c)
  del story [:]
  c.save()
  </code></pre>