]> _ Git - fluidbook_tools.git/commitdiff
wip #7684 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Aug 2025 14:13:43 +0000 (16:13 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Aug 2025 14:13:43 +0000 (16:13 +0200)
src/Links/ZoomLink.php

index 8345e4ff8ddbd4b5e6a804023bcd4544d5ed616a..005a89daad1e36278c7e5edb654b0d88f4fae245 100644 (file)
@@ -146,7 +146,7 @@ class ZoomLink extends NormalLink
 
         if (!isset($attributes['pdf']) || !$attributes['pdf']) {
             $pdfpath = $compiler->getPagePDFSource($attributes['page']);
-            if(!$pdfpath){
+            if (!$pdfpath) {
                 $compiler->addIssue(16, ['error' => 'The zoom area can\'t be generated', 'uid' => $attributes['id'], 'page' => $attributes['page']]);
                 return null;
             }
@@ -182,7 +182,7 @@ class ZoomLink extends NormalLink
 
         $leftArea = ['x' => $x, 'y' => $y, 'width' => $leftWidth, 'height' => $leftHeight];
 
-        $leftfile = PDF::extractArea($pdfpath,
+        $leftfile = $compiler->extractPDFArea($pdfpath,
             $extractPage,
             $leftArea,
             null, $extractOptions, $cache);
@@ -202,7 +202,7 @@ class ZoomLink extends NormalLink
             }
 
             $diff = ($w + $x) - $bookwidth;
-            $rightfile = PDF::extractArea($pdfpath,
+            $rightfile = $compiler->extractPDFArea($pdfpath,
                 $extractPage,
                 ['x' => 0, 'y' => $y, 'width' => $diff, 'height' => $h],
                 null, $extractOptions, $cache);