End Of First Iteration Assignment in a .docx and .pdf file