]> _ Git - fluidbook-toolbox.git/commitdiff
wip #7496 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 23 Apr 2025 17:00:52 +0000 (19:00 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 23 Apr 2025 17:00:52 +0000 (19:00 +0200)
app/Models/FluidbookPublication.php

index 1b1fefb7b2068b76b140afc6a52509df005c3f6c..9357f67cb3159febf88ed69f633d901f3993796f 100644 (file)
@@ -461,6 +461,9 @@ class FluidbookPublication extends ToolboxStatusModel
 
     public function getPDFSplitSource($page)
     {
+        if ($page > $this->getPagesNumber()) {
+            return '';
+        }
         $compo = $this->getComposition()[$page];
         $doc = self::_getDocument($compo[0]);
         $pdf = $doc->path('pdf/p' . $compo[1] . '.pdf');