python删除PDF指定页数
在一位博主的基础上进行简单的修改,下面代码可简单修改页数后使用。
import PyPDF2
def delete_pdf_page(input_path, output_path, page_number):
with open(input_path, 'rb') as input_file:
reader = PyPDF2.PdfReader(input_file)
wri
import PyPDF2
def delete_pdf_page(input_path, output_path, page_number):
with open(input_path, 'rb') as input_file:
reader = PyPDF2.PdfReader(input_file)
wri