Policy error while converting to image #777
Answered
by
samkit-jain
kathimohan
asked this question in
Q&A
-
I tried to convert to image but getting the error - PolicyError: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/421 The code is import pdfplumber pdf_name = "outputk.pdf" Changed the policy to read/write for pdf but didn't work |
Beta Was this translation helpful? Give feedback.
Answered by
samkit-jain
Dec 16, 2022
Replies: 2 comments
-
Hi @kathimohan, do the answers in #81 (comment) help resolve this for you? |
Beta Was this translation helpful? Give feedback.
0 replies
-
In file
<!-- <policy domain="coder" rights="none" pattern="MVG" /> -->
<policy domain="coder" rights="none" pattern="PDF" /> to <policy domain="coder" rights="read|write" pattern="PDF" />
<policy domain="coder" rights="read|write" pattern="LABEL" /> Then restart your computer. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kathimohan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In file
/etc/ImageMagick-6/policy.xml
(or/etc/ImageMagick/policy.xml
)<!-- <policy domain="coder" rights="none" pattern="MVG" /> -->
to
Then restart your computer.