title: How can I generate a pdf in Reportlab from information from different documents?
body: <p>Would anybody who knows, help me understand how this code can work to produce the required page.</p>
  
  <pre><code>c = canvas.Canvas("sample.pdf")
  sample1 = csv.reader(open('sample1.csv'))
  for i in sample1:
      first = i[0]
      c.drawString(100,800,first)
      sample2 = csv.reader(open('sample2.csv'))
      for x in sample2:
          sec = x[0]
          third = x[1]
          fourth = x[2]
          c.drawString(200,700,sec)
          c.drawString(200,600,third)
          c.drawString(200,500,fourth)
      c.showPage()
  c.save()
  </code></pre>
  
  <p>As it is, it prints only the documents in sample2 successfully and one page of the items in sample1....
  I'm trying to extract information from two documents to use in generating one pdf.</p>