mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 20:17:14 +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 {
|
||||
$this->fpdi->mergeFiles($sourceFiles, $targetFile);
|
||||
} catch (PdfIncompatibleException $exception) {
|
||||
$this->gs->mergeFiles($sourceFiles, $targetFile);
|
||||
} catch (Exception $exception) {
|
||||
$this->fpdi->mergeFiles($sourceFiles, $targetFile);
|
||||
}
|
||||
|
||||
return $targetFile;
|
||||
|
Loading…
Reference in New Issue
Block a user