mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 14:10:28 +01:00
Prioritize ghostscript over fpdi for merging of PDFs
This commit is contained in:
parent
a7569785c8
commit
63aaaf96ee
@ -49,9 +49,9 @@ final class PdfMerger
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$this->fpdi->mergeFiles($sourceFiles, $targetFile);
|
|
||||||
} catch (PdfIncompatibleException $exception) {
|
|
||||||
$this->gs->mergeFiles($sourceFiles, $targetFile);
|
$this->gs->mergeFiles($sourceFiles, $targetFile);
|
||||||
|
} catch (Exception $exception) {
|
||||||
|
$this->fpdi->mergeFiles($sourceFiles, $targetFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $targetFile;
|
return $targetFile;
|
||||||
|
Loading…
Reference in New Issue
Block a user