title: Multiple pages using Reportlab - Django
body: <p>I'm working in a site using Django and I print a .pdf file using Repotlab.</p>
  
  <p>Now, I want the file to have multiple pages, how can I do it?</p>
  
  <p>My code:</p>
  
  <pre><code>from reportlab.pdfgen import canvas
  from django.http import HttpResponse
  
  def Print_PDF(request):
      response = HttpResponse(content_type='application/pdf')
      response['Content-Disposition'] = 'attachment; filename="resume.pdf"'
  
      p = canvas.Canvas(response)
  
      p.drawString(100, 100, "Some text in first page.")
      p.drawString(200, 100, "Some text in second page.")
      p.drawString(300, 100, "Some text in third page")
  
      p.showPage()
      p.save()
      return response
  </code></pre>
  
  <p>Thanks in advance.</p>