- Issue created by @stephenplatz
- π«π·France sgostanyan
The error you are encountering, attempt to perform an operation not allowed by the security policy 'PDF' @ error/constitute.c/IsCoderAuthorized/413, is not related to the module itself but rather to the ImageMagick security policies configured on your server.
ImageMagick has a configuration file, typically called policy.xml, that defines rules for which operations are permitted or denied. In your case, the server's ImageMagick policy is restricting access to PDF files, which is why the module is unable to read or process the PDF.
To resolve this, your server administrator will need to modify the policy.xml file to allow the processing of PDFs. Specifically, they need to adjust the following entry:
<policy domain="coder" rights="read|write" pattern="PDF"/>
If the rights are set to none, PDF operations will be blocked. Updating the rights to read|write should allow the module to work as expected.
Please note that the location and content of the policy.xml file may vary depending on the version of ImageMagick installed. Typically, it can be found in directories such as /etc/ImageMagick/ or /etc/ImageMagick-7/ depending on the version.