code: def render_to_reportlab_document(output_filename, papersize_tuple, layout):
      
      c = Canvas(output_filename, papersize_tuple)
      render_to_reportlab_canvas(c, papersize_tuple, layout)
      c.save()
docs: Create and save a document with contents of the given layout manager.