二、python程序 importosimportofficefromPILimportImageimportimg2pdf# 新建两个文件夹分别存储裁剪前和裁剪后的图片defnewfolders():forfolderin['images before cropping', 'images after cropping']:ifos.path.isdir(folder)==False:os.mkdir(folder)# pdf双页文档转为多张png图片defpdf_to_images(pdf_path):offi...
二、python程序 importosimportofficefromPILimportImageimportimg2pdf# 新建两个文件夹分别存储裁剪前和裁剪后的图片defnewfolders():forfolderin['images before cropping', 'images after cropping']:ifos.path.isdir(folder)==False:os.mkdir(folder)# pdf双页文档转为多张png图片defpdf_to_images(pdf_path):offi...