使用python将PDF转换为图像(pdf2image模块)

2024-04-20 14:37:04 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用Python和pdf2image模块将PDF转换为图像。你知道吗

我的代码:

import numpy as np
from pdf2image import convert_from_path
pages = convert_from_path('file.pdf')
print(pages)

我不知道为什么我会犯这样的错误

enter image description here

enter image description here


Tags: 模块path代码from图像importnumpyconvert