from pdf2image import convert_from_path
im = convert_from_path('C:/Users/Momoda/Desktop/data/phy1.pdf')
for id in range(len(im)):
str_ = 'C:/Users/Momoda/Desktop/data/phy1/' + str(id) + '.jpg'
im[id].save(str_)
极简Python学习教程-----PDF转图片(代码)
最新推荐文章于 2024-04-25 10:24:24 发布