I am making a project in which i have multiple bytes stored in a list, but when I write them on the pdf file, it overwrites the last page and after when the process is compl