PHP: Uncaught ImagickException: PDFDelegateFailed

前端 未结 2 1266
清酒与你
清酒与你 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: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.

提交回复
热议问题