]> _ Git - fluidbook_processfarm.git/commitdiff
wip #6119 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 7 Jul 2023 13:44:40 +0000 (15:44 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 7 Jul 2023 13:44:40 +0000 (15:44 +0200)
app/src/ProcessFile.php
app/src/ProcessToolboxPDFFile.php

index b51a8dae8473ff31055d9791168226d8b687a1aa..1c55cfbb003e267d2c898cde98996f9205c03e7f 100644 (file)
@@ -134,7 +134,7 @@ class ProcessFile extends \Fluidbook\Tools\Jobs\ProcessFile {
                }
        }
 
-       public function getPdf(): string {
+       public function getPdf(): string|null {
                $res = Files::firstThatExists($this->getOut() . '/crop.pdf', $this->getOut() . '/fixed.pdf', $this->getOut() . '/original.pdf');
                if(null===$res) {
                        echo 'no pdf in ' . $this->getOut();
index 42540dc5563b65850382bffa622e7f3d254194fd..b3fc5c44ca7aaf6eb242591d6033a208ed4d6844 100644 (file)
@@ -19,7 +19,7 @@ class ProcessToolboxPDFFile extends ProcessToolboxDocumentFile {
        /**
         * @return string
         */
-       public function getPdf(): string {
+       public function getPdf(): string|null {
                return $this->_pdf;
        }