summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/pdfpages
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-03-08 03:00:59 +0000
committerNorbert Preining <norbert@preining.info>2021-03-08 03:00:59 +0000
commitd9784b9287b55be1161c5d383c2a7ebde45671ee (patch)
treebf57d07f605b6c53c124ce1f918014bb8dae108f /macros/latex/contrib/pdfpages
parent6c0a4c9f40ab21e9b7d888d6a13b76b9af2f6c5b (diff)
CTAN sync 202103080300
Diffstat (limited to 'macros/latex/contrib/pdfpages')
-rw-r--r--macros/latex/contrib/pdfpages/pdfpages.dtx42
-rw-r--r--macros/latex/contrib/pdfpages/pdfpages.pdfbin297774 -> 298716 bytes
2 files changed, 33 insertions, 9 deletions
diff --git a/macros/latex/contrib/pdfpages/pdfpages.dtx b/macros/latex/contrib/pdfpages/pdfpages.dtx
index eb64a63b55..10188c05a9 100644
--- a/macros/latex/contrib/pdfpages/pdfpages.dtx
+++ b/macros/latex/contrib/pdfpages/pdfpages.dtx
@@ -27,12 +27,12 @@
%<*dtx>
\makeatletter
%</dtx>
-\def\AM@fileversion{v0.5s}
+\def\AM@fileversion{v0.5t}
\def\AM@Git@Date@process$#1: #2 #3${\AM@Git@Date@process@i#2\END}
\def\AM@Git@Date@process@i#1-#2-#3\END{\def\AM@Git@Date{#1/#2/#3}}
\def\AM@Git@SHA@process$#1: #2${\def\AM@Git@SHA{#2}}
-\AM@Git@Date@process$Date: 2021-02-05 15:10:20 +0100 $
-\AM@Git@SHA@process$SHA-1: 96070951ed4fc4b97d5a7a910640f7dbd57cc928 $
+\AM@Git@Date@process$Date: 2021-03-06 23:19:52 +0100 $
+\AM@Git@SHA@process$SHA-1: 591720c980385429528b3bf2256f2d4f7c2c55e9 $
%</!(example1,example2,example3,installer)>
%
%
@@ -84,7 +84,7 @@
%
% \GetFileInfo{pdfpages.dtx}
%
-% \CheckSum{5060}
+% \CheckSum{5076}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -3531,9 +3531,18 @@
}
% \end{macrocode}
% Rotate page.
-% \begin{macrocode}
-\def\AM@setRotate{\PLS@Rotate{90}}
-\def\AM@resetRotate{\PLS@Rotate{0}}
+% Use new pdfmanagement macros if available, and fallback to pdflscape
+% if they are not available.
+% \begin{macrocode}
+\ExplSyntaxOn
+\@ifundefined{pdfmanagement_add:nnn}{%
+ \def\AM@setRotate{\PLS@Rotate{90}}%
+ \def\AM@resetRotate{\PLS@Rotate{0}}%
+}{%
+ \def\AM@setRotate{\pdfmanagement_add:nnn{ThisPage}{Rotate}{90}}%
+ \def\AM@resetRotate{}%
+}%
+\ExplSyntaxOff
% \end{macrocode}
% Link to original document.
% \begin{macrocode}
@@ -3706,6 +3715,8 @@
\let\AM@pagesize@boogie\relax
% \end{macrocode}
% Rotate page.
+% Use new pdfmanagement macros if available, and fallback to pdflscape
+% if they are not available.
% \begin{macrocode}
\def\AM@setRotate{\special{pS:
[{ThisPage}\string<\string</Rotate 90\string>\string>%]
@@ -3895,8 +3906,15 @@
% \end{macrocode}
% Rotate page.
% \begin{macrocode}
-\def\AM@setRotate{\PLS@Rotate{90}}
-\def\AM@resetRotate{\PLS@Rotate{0}}
+\ExplSyntaxOn
+\@ifundefined{pdfmanagement_add:nnn}{%
+ \def\AM@setRotate{\PLS@Rotate{90}}%
+ \def\AM@resetRotate{\PLS@Rotate{0}}%
+}{%
+ \def\AM@setRotate{\pdfmanagement_add:nnn{ThisPage}{Rotate}{90}}%
+ \def\AM@resetRotate{}%
+}%
+\ExplSyntaxOff
% \end{macrocode}
% Link to original document.
% \begin{macrocode}
@@ -4821,6 +4839,12 @@
% |\fboxrule| equal the values which were active just before
% calling |\includepdf|.
% \end{itemize}
+%
+% \subsection*{2021/03/06 v0.5t}
+% \begin{itemize}
+% \item Page rotation: Use new pdfmanagement macros if they are
+% available, and fallback to pdflscape if they are not available.
+% \end{itemize}
% \Finale
%
% \iffalse
diff --git a/macros/latex/contrib/pdfpages/pdfpages.pdf b/macros/latex/contrib/pdfpages/pdfpages.pdf
index a1227b99fc..df6493f4d5 100644
--- a/macros/latex/contrib/pdfpages/pdfpages.pdf
+++ b/macros/latex/contrib/pdfpages/pdfpages.pdf
Binary files differ