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