I am facing the issue while converting pdf to image using Wand:
E wand.exceptions.PolicyError: not authorized `/opt/sample.pdf' @ error/constitute.c/ReadImage/412
I have already visited the previous stack overflow question here:
convert:not authorized `aaaa` @ error/constitute.c/ReadImage/453
Here is my code
def build_image(self, pdf_path, img_path):
with wand.image.Image(filename=pdf_path) as img:
img.save(filename=img_path)
My code was working from last 6 months. Now, why am I getting this error?
Please help.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…