From: Vincent Vanwaelscappel Date: Mon, 5 Jun 2023 14:13:52 +0000 (+0200) Subject: wip #5991 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4b98be77e4fb34671c4743b15a76c4f24c98e938;p=fluidbook_processfarm.git wip #5991 @0.25 --- diff --git a/app/src/ProcessFile.php b/app/src/ProcessFile.php index 788206c..08143e2 100644 --- a/app/src/ProcessFile.php +++ b/app/src/ProcessFile.php @@ -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() {