B
B
big_hasan2016-11-25 10:44:24
PHP
big_hasan, 2016-11-25 10:44:24

Imagick(ImageMagick for php): why can't read PDF file?

I'm trying to call readImage(). With images, the library works fine, but when you try to open a PDF file, a white screen appears on the page (no errors are displayed), the html code of the page is completely empty. The only thing that came out in this case was a "naked" test message with "echo" before the line with readimage(). After - no longer works.
I also tried this option: $imagick=new Imagick("file.pdf"); The same.
Given my unprofessionalism and the fact that I'm practically a beginner, there are absolutely no options for solving this problem. Tell me at least where to dig, where to start.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Druzhaev, 2016-11-25
@big_hasan

www.imagemagick.org/discourse-server/viewtopic.php...

R
Rsa97, 2016-11-25
@Rsa97

The first thing to do in case of problems is to look at the logs, in this case, most likely /var/log/apache2/error.log

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question