From 27a058268217c136d9dd212a9c1c7518bce1020d Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 14 Nov 2022 20:12:20 +0000
Subject: hyperref (14nov22)

git-svn-id: svn://tug.org/texlive/trunk@65014 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/hyperref/hpdftex.def | 36 +++++++++++++-----------
 1 file changed, 19 insertions(+), 17 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/hyperref/hpdftex.def')

diff --git a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def
index 64ad0b5a26c..143cbdb7740 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def
@@ -33,7 +33,7 @@
 %% 
 %% File: hyperref.dtx
 \ProvidesFile{hpdftex.def}
-  [2022-09-22 v7.00t %
+  [2022-11-13 v7.00u %
   Hyperref driver for pdfTeX]
 \Hy@VersionCheck{hpdftex.def}
 \pdf@ifdraftmode{%
@@ -701,24 +701,26 @@
         \fi
       \fi
     }{%
-      \ifdim\stockwidth>\z@
-        \ifdim\stockheight>\z@
-         \setlength{\pdfpagewidth}{\stockwidth}%
-         \setlength{\pdfpageheight}{\stockheight}%
-        \else
-          \ifdim\paperwidth>\z@
-            \ifdim\paperheight>\z@
-              \setlength{\pdfpagewidth}{\paperwidth}%
-              \setlength{\pdfpageheight}{\paperheight}%
+      \ifnum\mag=\@m
+        \ifdim\stockwidth>\z@
+          \ifdim\stockheight>\z@
+           \setlength{\pdfpagewidth}{\stockwidth}%
+           \setlength{\pdfpageheight}{\stockheight}%
+          \else
+            \ifdim\paperwidth>\z@
+              \ifdim\paperheight>\z@
+                \setlength{\pdfpagewidth}{\paperwidth}%
+                \setlength{\pdfpageheight}{\paperheight}%
+              \fi
             \fi
           \fi
-        \fi
-      \else
-        \ifdim\stockwidth=\z@
-          \ifdim\paperwidth>\z@
-            \ifdim\paperheight>\z@
-              \setlength{\pdfpagewidth}{\paperwidth}%
-              \setlength{\pdfpageheight}{\paperheight}%
+        \else
+          \ifdim\stockwidth=\z@
+            \ifdim\paperwidth>\z@
+              \ifdim\paperheight>\z@
+                \setlength{\pdfpagewidth}{\paperwidth}%
+                \setlength{\pdfpageheight}{\paperheight}%
+              \fi
             \fi
           \fi
         \fi
-- 
cgit v1.2.3

