PyPDF2 split pdf by pages
问题 I wanna split pdf file using PyPDF2. All examples in net is too difficult or don't work or always give error "AttributeError: 'PdfFileWriter' object has no attribute 'stream'" Can someone help with it ? Need separete one pdf with 3 pages into three different files. I'm starting from that: pdfFileObj = open(r"D:\BPO\act.pdf", 'rb') pdfReader = PyPDF2.PdfFileReader(pdfFileObj) pdfWriter = PyPDF2.PdfFileWriter() pdfWriter.addPage(pdfReader.getPage(0)) But don't know what to do next :( EDIT#1 Was