From 4b98be77e4fb34671c4743b15a76c4f24c98e938 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 5 Jun 2023 16:13:52 +0200 Subject: [PATCH] wip #5991 @0.25 --- app/src/ProcessFile.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() { -- 2.39.5