From 62113b9880ca6515de74ca7161f6293b7feafa44 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 1 Jun 2023 11:36:30 +0200 Subject: [PATCH] wip #5977 --- src/Links/ZoomLink.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5