Trying to open PDF file from php script drop into fault with error:
Uncaught ImagickException: Failed to read the file in ...
I'm running OS X, Brew, PHP 7.0, php70-imagick --HEAD, ImageMagick --with-ghostscript, GhostScript
Command line test works fine:
convert 1.pdf 1.jpg
File permission is ok. Try both, an URL and local file with realpath function, so filepath is ok too. Script works fine if open jpeg.
phpinfo() -> ImageMagick supported formats: EPDF, PDF, PDFA, etc.
UPDATE: Solved. Solution below.