Skip to content

Instantly share code, notes, and snippets.

@donnykurnia
Last active August 27, 2020 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save donnykurnia/47e120abbae3d35ab7e938aab02b5fcc to your computer and use it in GitHub Desktop.
Save donnykurnia/47e120abbae3d35ab7e938aab02b5fcc to your computer and use it in GitHub Desktop.
patch /etc/ImageMagick/policy.xml to allow read and write PDF file
sudo sed -e 's/<policy domain="coder" rights="none" pattern="PDF" \/>/<policy domain="coder" rights="read|write" pattern="PDF" \/>\n\ \ <policy domain="coder" rights="read|write" pattern="LABEL" \/>/' -i /etc/ImageMagick/policy.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment