]> _ Git - fluidbook_processfarm.git/commitdiff
wip #5991 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 5 Jun 2023 14:13:52 +0000 (16:13 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 5 Jun 2023 14:13:52 +0000 (16:13 +0200)
app/src/ProcessFile.php

index 788206c87cdbceb6a50d1c0341c76f8a3d5f2c0e..08143e224ebb52e6a90e7257944c8ca0d8adc1e0 100644 (file)
@@ -4,6 +4,7 @@ namespace Fluidbook\Farmer;
 
 use Cubist\PDF\PDFTools;
 use Cubist\Util\Files\Files;
+use Illuminate\Support\Facades\Log;
 
 class ProcessFile extends \Fluidbook\Tools\Jobs\ProcessFile {
        protected const DISTANT_ROOT = '/application/fluidbook/docs/';
@@ -135,7 +136,9 @@ class ProcessFile extends \Fluidbook\Tools\Jobs\ProcessFile {
        }
 
        public function getPdf(): string {
-               return Files::firstThatExists($this->getOut() . '/crop.pdf', $this->getOut() . '/fixed.pdf', $this->getOut() . '/original.pdf');
+               $res = Files::firstThatExists($this->getOut() . '/crop.pdf', $this->getOut() . '/fixed.pdf', $this->getOut() . '/original.pdf');
+               Log::warning('not pdf in ' . $this->getOut());
+               return $res;
        }
 
        public function getSplittedPDFPage() {