Added imagick PDF support (via ghostscript)

This commit is contained in:
cytopia
2020-08-08 11:08:05 +02:00
parent 10285279c7
commit 3153b329f1
10 changed files with 49 additions and 6 deletions

Binary file not shown.

View File

@@ -0,0 +1,29 @@
<?php
/**
* This page should print 'OK' if everything works,
* 'FAIL' or nothing if an error occured.
*/
ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);
error_reporting(-1);
$PHP_VERSION = str_replace('-dev', '', PHP_VERSION);
// Only available since 5.3.0 (PHP 5.3 and 5.4 segfaults)
if (version_compare($PHP_VERSION, '5.5.0', '<')) {
echo 'SKIP';
exit(0);
}
// FIXME: Currently not supported on PHP 8
if (version_compare($PHP_VERSION, '8.0.0', '>=')) {
echo 'SKIP';
exit(0);
}
$img = new Imagick();
if ($img->readImage('dummy.pdf') !== True) {
echo 'FAIL: newImage()';
exit(1);
}
echo 'OK';