pdf = SimpleDocTemplate( "receipt.pdf" , pagesize = A4 ) # creating a document template ...