PHP: Uncaught ImagickException: PDFDelegateFailed

前端 未结 2 1265
清酒与你
清酒与你 2021-01-18 18:54

I want to generate images from pdf pages in PHP. I am using imagick php extention to achieve this but I am getting error below when i am tring to read pdf file by imagick

相关标签:
2条回答
  • 2021-01-18 19:43

    I got issue in Ghostscript 9.22 installation that was 64-bit, I uninstalled that and installed Ghostscript 9.22 32-bit. Issue Fixed.

    Thanks for your help.

    0 讨论(0)
  • 2021-01-18 19:45

    ImageMagick can't find Ghostscript. The most usual reason for this is that the Ghostscript path is not in the $PATH environment variable, so IM doesn't know where to find it.

    Add the Ghostscript installation path (which will vary depending on your OS and the package you use if its a Linux flavour and you us a package) to the $PATH environment variable for the user whic is active when your PHP script runs.

    0 讨论(0)
提交回复
热议问题