[latex3-commits] [git/LaTeX3-latex3-hyperref] master: remove pdfpagehidden and related code (ef0d04f)
Ulrike Fischer
fischer at troubleshooting-tex.de
Thu Feb 4 11:56:30 CET 2021
Repository : https://github.com/latex3/hyperref
On branch : master
Link : https://github.com/latex3/hyperref/commit/ef0d04f3c996514465a1ecc8530bb1ea655d1a7d
>---------------------------------------------------------------
commit ef0d04f3c996514465a1ecc8530bb1ea655d1a7d
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Thu Feb 4 11:56:30 2021 +0100
remove pdfpagehidden and related code
>---------------------------------------------------------------
ef0d04f3c996514465a1ecc8530bb1ea655d1a7d
ChangeLog.txt | 1 +
hluatex.dtx | 23 ---------------
hyperref.dtx | 94 -----------------------------------------------------------
3 files changed, 1 insertion(+), 117 deletions(-)
diff --git a/ChangeLog.txt b/ChangeLog.txt
index ee48dfb..973f08a 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -9,6 +9,7 @@
* removed outdated code to fix the first page boxlevel.
* removed outdated code to fix old ltxcmds code
* removed outdated code to fix fancyvrb
+ * removed code related to /Hid - deprecated in PDF 1.2
2020-01-14 7.00d David Carlisle
* Test for newer GhostScript releases in dvips output
diff --git a/hluatex.dtx b/hluatex.dtx
index 9f0aa22..cc00738 100644
--- a/hluatex.dtx
+++ b/hluatex.dtx
@@ -706,33 +706,10 @@
\Hy at RemoveDurPageAttr#1#4\END
\fi
}
-\def\hyper at pagehidden{%
- \ifHy at useHidKey
- \expandafter
- \Hy at RemoveHidPageAttr\the\pdfpageattr^^J/Hid{} \END
- \ifHy at pdfpagehidden
- \edef\@processme{%
- \global\pdfpageattr{%
- \the\pdfpageattr
- ^^J/Hid true % SPACE
- }%
- }%
- \@processme
- \fi
- \fi
-}
-\gdef\Hy at RemoveHidPageAttr#1^^J/Hid#2#3 #4\END{%
- \ifx\\#2\\%
- \global\pdfpageattr{#1}%
- \else
- \Hy at RemoveHidPageAttr#1#4\END
- \fi
-}
\pdf at ifdraftmode{}{%
\g at addto@macro\Hy at EveryPageHook{%
\hyper at pagetransition
\hyper at pageduration
- \hyper at pagehidden
}%
}
\Hy at AtBeginDocument{%
diff --git a/hyperref.dtx b/hyperref.dtx
index a883dea..a8d5c98 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -827,7 +827,6 @@
\newif\ifHy at ocgcolorlinks
\newif\ifHy at pageanchor
\newif\ifHy at pdfpagelabels
-\newif\ifHy at pdfpagehidden
\newif\ifHy at pdfstring
\newif\ifHy at plainpages
\newif\ifHy at psize
@@ -872,7 +871,6 @@
\Hy at pdfnewwindowfalse
\Hy at pageanchortrue
\Hy at pdfpagelabelstrue
-\Hy at pdfpagehiddenfalse
\Hy at pdfstringfalse
\Hy at plainpagesfalse
\Hy at raiselinksfalse
@@ -6220,21 +6218,6 @@
% \end{macrocode}
% \end{macro}
%
-% The entry for the |/Hid| key in the page object is
-% only necessary, if it is used and set to true for
-% at least one time. If it is always false, then
-% the |/Hid| key is not written to the pdf page
-% object in order not to enlarge the pdf file.
-% \begin{macrocode}
-\newif\ifHy at useHidKey
-\Hy at useHidKeyfalse
-\define at key{Hyp}{pdfpagehidden}[true]{%
- \Hy at boolkey{pdfpagehidden}{#1}%
- \ifHy at pdfpagehidden
- \global\Hy at useHidKeytrue
- \fi
-}
-% \end{macrocode}
%
% The value of the |bordercolor| options are not processed
% by the color package. Therefore the value consists of
@@ -14158,55 +14141,12 @@
% \end{macrocode}
% \end{macro}
%
-% \begin{macro}{\hyper at pagehidden}
-% The boolean value of the key |/Hid| is stored in switch
-% \cmd{\ifHy at pdfpagehidden}.
-% First previous |/Hid| entries are removed, then the new
-% one is appended, if the value is true (the PDF default
-% is false).
-% \begin{macrocode}
-\def\hyper at pagehidden{%
- \ifHy at useHidKey
- \expandafter
- \Hy at RemoveHidPageAttr\the\pdfpageattr^^J/Hid{} \END
- \ifHy at pdfpagehidden
- \edef\@processme{%
- \global\pdfpageattr{%
- \the\pdfpageattr
- ^^J/Hid true % SPACE
- }%
- }%
- \@processme
- \fi
- \fi
-}
-% \end{macrocode}
-% \end{macro}
-% \begin{macro}{\Hy at RemoveHidPageAttr}
-% Macro \cmd{\Hy at RemoveHidPageAttr} removes a |/Hid|
-% entry from \cmd{\pdfpageattr}. It is called with
-% the end marker |^^J/Hid{} \END|. The trick is the
-% empty group that does not appear in legal
-% \cmd{\pdfpageattr} code. It appears in argument
-% |#2| and shows, whether the parameter text
-% catches a really |/Hid| object or the end marker.
-% \begin{macrocode}
-\gdef\Hy at RemoveHidPageAttr#1^^J/Hid#2#3 #4\END{%
- \ifx\\#2\\%
- \global\pdfpageattr{#1}%
- \else
- \Hy at RemoveHidPageAttr#1#4\END
- \fi
-}
-% \end{macrocode}
-% \end{macro}
%
% \begin{macrocode}
\pdf at ifdraftmode{}{%
\g at addto@macro\Hy at EveryPageHook{%
\hyper at pagetransition
\hyper at pageduration
- \hyper at pagehidden
}%
}
% \end{macrocode}
@@ -15292,22 +15232,10 @@
}
% \end{macrocode}
% \end{macro}
-% \begin{macro}{\hyper at pagehidden}
-% \begin{macrocode}
-\def\hyper at pagehidden{%
- \ifHy at useHidKey
- \special{pdf:put @thispage %
- <</Hid \ifHy at pdfpagehidden true\else false\fi>>%
- }%
- \fi
-}
-% \end{macrocode}
-% \end{macro}
% \begin{macrocode}
\g at addto@macro\Hy at EveryPageBoxHook{%
\hyper at pagetransition
\hyper at pageduration
- \hyper at pagehidden
}
% \end{macrocode}
% \begin{macrocode}
@@ -15950,15 +15878,9 @@
\fi
\fi
}%
- \def\hyper at pagehidden{%
- \ifHy at useHidKey
- \special{!hidden\ifHy at pdfpagehidden +\else -\fi}%
- \fi
- }%
\g at addto@macro\Hy at EveryPageBoxHook{%
\hyper at pagetransition
\hyper at pageduration
- \hyper at pagehidden
}%
\fi
% \end{macrocode}
@@ -16352,26 +16274,10 @@
}
% \end{macrocode}
% \end{macro}
-% \begin{macro}{\hyper at pagehidden}
-% \begin{macrocode}
-\def\hyper at pagehidden{%
- \ifHy at useHidKey
- \pdfmark{%
- pdfmark=/PUT,%
- Raw={%
- \string{ThisPage\string}%
- <</Hid \ifHy at pdfpagehidden true\else false\fi>>%
- }%
- }%
- \fi
-}
-% \end{macrocode}
-% \end{macro}
% \begin{macrocode}
\g at addto@macro\Hy at EveryPageBoxHook{%
\hyper at pagetransition
\hyper at pageduration
- \hyper at pagehidden
}
% \end{macrocode}
% \begin{macrocode}
More information about the latex3-commits
mailing list.