]> _ Git - fluidbook_tools.git/commitdiff
wait #7045 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 20 Aug 2024 10:01:37 +0000 (12:01 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 20 Aug 2024 10:01:37 +0000 (12:01 +0200)
src/Jobs/ProcessFile.php

index 6cf03dcd8da56ca355df0e2b4f9b98247a21815d..509b7c963c719f65453949d87d0fb4266e9cc00c 100644 (file)
@@ -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;