pdf转图片

pip install pdf2image

sudo apt-get install poppler-utils

from pdf2image import convert_from_path

pdf_path = "2.pdf"
images = convert_from_path(pdf_path)
print(1)

posted on 2024-11-03 22:58  张博的博客  阅读(3)  评论(0编辑  收藏  举报

导航