将原pdf 拆解成独立的pdf
from PyPDF2 import PdfReader, PdfWriter
file_reader = PdfReader("fsyy-en-cn.pdf")
# getNumPages() 获取总页数
for page in range(len(file_reader.pages)):
# 实例化对象
file_writer = PdfWriter()
# 将遍历的每一页添加到实例化对象中
file_writer.add_page(file_reader.pages[page])
with open(r"fsyy\{}.pdf".format(page),'wb') as out:
file_writer.write(out)