使用pythonwand实现PDF到图像的转换

2024-04-25 07:23:26 发布

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

我正在使用魔杖图像在Python3中将pdf转换为图像文件的包,但我收到一个操作系统错误。我无法避开这个错误。如有任何帮助,我们将不胜感激。在

import os
from wand.image import Image as Img

pdf = Img(filename='test.pdf', resolution=200)

^{pr2}$

Tags: from图像imageimportimgpdfosas