Problem with conversion of pdf file
Posted: 2017-02-02T21:23:48-07:00
Immediately I apologize for my bad English.
On the server with Windows Server 2012 (IIS) installed Imagick 7.0.4 and GS 9.20.
I convert pdf to jpg from Windows CMD (command line):
- all works, file converting.
If I do the same thing from a php script using exec command:
- the conversion does not occur. The array $out is empty.
If I convert images, everything works fine:
On the server with Windows Server 2012 (IIS) installed Imagick 7.0.4 and GS 9.20.
I convert pdf to jpg from Windows CMD (command line):
Code: Select all
magick "to_process/sample.pdf" "to_process/next.png"
If I do the same thing from a php script using exec command:
Code: Select all
<?php
$command = 'magick "to_process/sample.pdf" "to_process/next.png"';
exec($command, $out, $ret);
print_r($out);
?>
If I convert images, everything works fine:
Code: Select all
<?php
$command = 'magick "to_process/sample.png" "to_process/next.jpg"';
exec($command, $out, $ret);
print_r($out);
?>