【发布时间】:2019-03-12 23:13:29
【问题描述】:
我在使用 Wand 将 pdf 转换为图像时遇到了问题:
E wand.exceptions.PolicyError: not authorized `/opt/sample.pdf' @ error/constitute.c/ReadImage/412
我已经在这里访问过之前的堆栈溢出问题: convert:not authorized `aaaa` @ error/constitute.c/ReadImage/453
这是我的代码
def build_image(self, pdf_path, img_path):
with wand.image.Image(filename=pdf_path) as img:
img.save(filename=img_path)
我的代码在过去 6 个月内一直有效。现在,为什么会出现这个错误?
请帮忙。
【问题讨论】:
标签: python-3.x wand