From b2e0e8f5313a053510a64f3fbd73101f38b82c0f Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 7 Aug 2025 16:13:43 +0200 Subject: [PATCH] wip #7684 @1.5 --- src/Links/ZoomLink.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.39.5