title: IMageMagick exception on PDF for Spatie Media Library
body: <p>I am using Spatie Media Library V7 and I am getting the following error when it attempts to perform a conversion</p>
  <p>ImagickException: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408 in /var/www/html/vendor/spatie/pdf-to-image/src/Pdf.php:40</p>
  <p>I have attepted the fixes from the following question without <a href="https://stackoverflow.com/questions/63988719/attempt-to-perform-an-operation-not-allowed-by-the-security-policy-pdf-error">success</a></p>
  <p>I have GD and ghostscript all setup as well</p>
  <p>my policy.xml is setup as follows:</p>
  <pre><code>  &lt;policy domain=&quot;module&quot; rights=&quot;read|write&quot; pattern=&quot;{PS,PDF,XPS}&quot; /&gt;
    &lt;policy domain=&quot;coder&quot; rights=&quot;read|write&quot; pattern=&quot;PS&quot; /&gt;
    &lt;policy domain=&quot;coder&quot; rights=&quot;none&quot; pattern=&quot;PS2&quot; /&gt;
    &lt;policy domain=&quot;coder&quot; rights=&quot;none&quot; pattern=&quot;PS3&quot; /&gt;
    &lt;policy domain=&quot;coder&quot; rights=&quot;none&quot; pattern=&quot;EPS&quot; /&gt;
    &lt;policy domain=&quot;coder&quot; rights=&quot;read|write&quot; pattern=&quot;PDF&quot; /&gt;
    &lt;policy domain=&quot;coder&quot; rights=&quot;read|write&quot; pattern=&quot;LABEL&quot; /&gt;
    &lt;policy domain=&quot;coder&quot; rights=&quot;none&quot; pattern=&quot;XPS&quot; /&gt;
  </code></pre>
  <p>Any help will great be appreciated</p>