From: Vincent Vanwaelscappel Date: Thu, 7 Aug 2025 14:13:43 +0000 (+0200) Subject: wip #7684 @1.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=b2e0e8f5313a053510a64f3fbd73101f38b82c0f;p=fluidbook_tools.git wip #7684 @1.5 --- diff --git a/src/Links/ZoomLink.php b/src/Links/ZoomLink.php index 8345e4f..005a89d 100644 --- a/src/Links/ZoomLink.php +++ b/src/Links/ZoomLink.php @@ -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);