* @param array
*/
protected $_context;
-
+
/**
* Constructor.
*
{
$this->_params = $params;
$this->_context = $context;
-
+
if (empty($context['tmpdir'])) {
throw new InvalidArgumentException('A path to a temporary directory is required.');
}
* @return integer
*/
abstract function getImagePageCount();
-
+
}
'canvas',
'multipage',
'pdf');
-
+
/**
* Operations to be performed before the source filename is specified on the
* command line.
* @string
*/
protected $_identify;
-
+
/**
* Cache the number of image pages
*
}
$rawImage = $this->_raw(true, $index, true);
$image = new Horde_Image_Im(array('data' => $rawImage), $this->_context);
-
+
return $image;
}
$this->_logErr(sprintf("Error running command: %s", $cmd . "\n" . implode("\n", $output)));
}
unlink($filename);
-
+
return $output;
}
}