From ebe4e5efb23ee31288190b61a63ede22fa242ec0 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 20 Aug 2024 12:01:37 +0200 Subject: [PATCH] wait #7045 @0.5 --- src/Jobs/ProcessFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jobs/ProcessFile.php b/src/Jobs/ProcessFile.php index 6cf03dc..509b7c9 100644 --- a/src/Jobs/ProcessFile.php +++ b/src/Jobs/ProcessFile.php @@ -313,7 +313,7 @@ class ProcessFile public function getSplittedPDFPage() { $res = $this->getOut() . 'pdf/p' . $this->getPage() . '.pdf'; - if (!file_exists($res)) { + if (!file_exists($res) || filesize($res) === 0) { $this->getJob()->splitDoc(); } return $res; -- 2.39.5