I need to generate a document out of each submission