add fold marks

This commit is contained in:
Uwe Steinmann 2024-09-17 14:29:43 +02:00
parent 939660f151
commit 1dad0081f9

View File

@ -28,16 +28,16 @@ class SeedDMS_ConversionServicePdfToImage extends SeedDMS_ConversionServiceBase
*/
public $timeout;
public function __construct($from, $to) {
public function __construct($from, $to) { /* {{{ */
parent::__construct();
$this->from = $from;
$this->to = $to;
$this->timeout = 5;
}
} /* }}} */
public function getInfo() {
public function getInfo() { /* {{{ */
return "Convert with imagick php functions";
}
} /* }}} */
public function getAdditionalParams() { /* {{{ */
return [
@ -46,7 +46,7 @@ class SeedDMS_ConversionServicePdfToImage extends SeedDMS_ConversionServiceBase
];
} /* }}} */
public function convert($infile, $target = null, $params = array()) {
public function convert($infile, $target = null, $params = array()) { /* {{{ */
$start = microtime(true);
$imagick = new Imagick();
/* Setting a smaller resolution will speed up the conversion
@ -96,8 +96,6 @@ class SeedDMS_ConversionServicePdfToImage extends SeedDMS_ConversionServiceBase
return false;
}
return false;
}
} /* }}} */
}