Title: PDF generation error
Last modified: January 21, 2026

---

# PDF generation error

 *  Resolved [vwbilli](https://wordpress.org/support/users/vwbilli/)
 * (@vwbilli)
 * [2 months, 1 week ago](https://wordpress.org/support/topic/pdf-generation-error-2/)
 * Error trying to generate document: attempt to perform an operation not allowed
   by the security policy `URL’ @ error/constitute.c/IsCoderAuthorized/461
 * The logo is from the media library, not a URL.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpdf-generation-error-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [p2hklipureja](https://wordpress.org/support/users/p2hklipureja/)
 * (@p2hklipureja)
 * [2 months, 1 week ago](https://wordpress.org/support/topic/pdf-generation-error-2/#post-18796130)
 * same problem at [https://pahklid.ee](https://pahklid.ee) :
 * Exception: attempt to perform an operation not allowed by the security policy`
   URL’ @ error/constitute.c/IsCoderAuthorized/461
 *  [p2hklipureja](https://wordpress.org/support/users/p2hklipureja/)
 * (@p2hklipureja)
 * [2 months, 1 week ago](https://wordpress.org/support/topic/pdf-generation-error-2/#post-18796166)
 * Sorry, found the reason – web server updated some security policys.
 *  Thread Starter [vwbilli](https://wordpress.org/support/users/vwbilli/)
 * (@vwbilli)
 * [2 months, 1 week ago](https://wordpress.org/support/topic/pdf-generation-error-2/#post-18797581)
 * Is there any solution to this if the VPS is from a third party?
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [2 months, 1 week ago](https://wordpress.org/support/topic/pdf-generation-error-2/#post-18799773)
 * Hi [@vwbilli](https://wordpress.org/support/users/vwbilli/) and [@p2hklipureja](https://wordpress.org/support/users/p2hklipureja/),
 * This error is not caused by the plugin itself. It comes from **ImageMagick / 
   Imagick security policies** on your server.
 * The message `attempt to perform an operation not allowed by the security policy'
   URL'`
   means that ImageMagick is blocking certain operations (such as reading 
   local files via `file://` or processing PDFs/images) due to restrictions defined
   in `policy.xml`.
 * This commonly happens after server updates or on managed/shared hosting where
   ImageMagick policies are tightened for security reasons.
 * **How to fix it:**
    - If you control the server, check ImageMagick’s policy file (e.g. `/etc/ImageMagick-
      6/policy.xml` or `/etc/ImageMagick-7/policy.xml`) and ensure the required 
      coders (like `URL` or `PDF`) are not set to `rights="none"`. You can try replacing
      the `rights` with something like this:
 *     ```wp-block-code
       <policy domain="coder" rights="read | write" pattern="URL" />
       ```
   
    - If you don’t control the server, contact your hosting provider and ask them
      to review ImageMagick security policies for PDF/image generation.
    - As a temporary workaround, disabling the PHP `imagick` extension may allow
      dompdf to fall back to `GD`.
 * Let me know if this works or if you need further help!

Viewing 4 replies - 1 through 4 (of 4 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpdf-generation-error-2%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * Last activity: [2 months, 1 week ago](https://wordpress.org/support/topic/pdf-generation-error-2/#post-18799773)
 * Status: resolved