If I have 1000+ pdf files need to be merged into one pdf,
input = PdfFileReader() output = PdfFileWriter() filename0000 ----- filename 1000 input = PdfFi
It maybe just what it says, you are opening to many files. You may explicitly use f=file(filename) ... f.close() in the loop, or use the with statement. So that each opened file is properly closed.
f=file(filename) ... f.close()
with