EOF marker not found while use PyPDF2 merge pdf file in python
问题 When I use the following code from PyPDF2 import PdfFileMerger merge = PdfFileMerger() for newFile in nlst: merge.append(newFile) merge.write('newFile.pdf') Something happened as following: raise utils.PdfReadError("EOF marker not found") PyPDF2.utils.PdfReadError: EOF marker not found Anybody could tell me what happened? Thanks 回答1: PDF is a file format, where a pdf parser normally starts reading the file by reading some global information located at the end of the file. At the very end of