Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2021-11-03 16:18:06 +01:00
commit ea5a9f499f

View File

@ -62,8 +62,13 @@ class SeedDMS_ConversionMgr {
*/
public function convert($file, $from, $to, $target=null, $params=array()) {
if(isset($this->services[$from][$to])) {
$service = end($this->services[$from][$to]);
return $service->convert($file, $target, $params);
$services = $this->services[$from][$to];
for(end($services); key($services)!==null; prev($services)) {
$service = current($services);
$text = $service->convert($file, $target, $params);
if($text !== false)
return $text;
}
}
}
}