From: Vincent Vanwaelscappel Date: Thu, 1 Jun 2023 09:36:30 +0000 (+0200) Subject: wip #5977 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=62113b9880ca6515de74ca7161f6293b7feafa44;p=fluidbook_tools.git wip #5977 --- diff --git a/src/Links/ZoomLink.php b/src/Links/ZoomLink.php index 3b9d5c7..3716e9e 100644 --- a/src/Links/ZoomLink.php +++ b/src/Links/ZoomLink.php @@ -134,7 +134,7 @@ class ZoomLink extends NormalLink { $leftArea, null, $extractOptions, $cache); - if ($attributes['page'] % 2 === 0 && ($x + $w) > ($bookwidth + 1) && $compiler->isDoublePage()) { + if ($attributes['page'] % 2 === 0 && ($x + $w) > ($bookwidth + 1) && $compiler->isDoublePage() && $attributes['page'] + 1 <= $compiler->getPageNumber()) { if (!isset($attributes['pdf']) || !$attributes['pdf']) { $pdfpath = $compiler->getPagePDFSource($attributes['page'] + 1); $extractPage = 1;