[latex3-commits] [git/LaTeX3-latex3-pdfresources] rename-coredict: adapt newpdflscape (28a3b5c)

Ulrike Fischer fischer at troubleshooting-tex.de
Sat Nov 21 19:08:08 CET 2020


Repository : https://github.com/latex3/pdfresources
On branch  : rename-coredict
Link       : https://github.com/latex3/pdfresources/commit/28a3b5ccb90995ecf1587275190b5f7f5c738d7a

>---------------------------------------------------------------

commit 28a3b5ccb90995ecf1587275190b5f7f5c738d7a
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Nov 21 19:08:08 2020 +0100

    adapt newpdflscape


>---------------------------------------------------------------

28a3b5ccb90995ecf1587275190b5f7f5c738d7a
 newpackages/new-pdflscape.sty | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/newpackages/new-pdflscape.sty b/newpackages/new-pdflscape.sty
index c33643c..1ef1e06 100644
--- a/newpackages/new-pdflscape.sty
+++ b/newpackages/new-pdflscape.sty
@@ -31,22 +31,22 @@
 \RequirePackage{lscape}
 % this always turns in the same direction as pdflscape did too.
 % left and right would need
-% \pdfcoredict_gput:nnn{ThisPage}{Rotate}{..}
+% \pdfmanagement_add:nnn{ThisPage}{Rotate}{..}
 % on every page (e.g. in a shipout hook) and some option to control the wanted
 % orientation.
 \tl_new:N\g__pdflscape_saverotate_tl
 \hook_gput_code:nnn {env/landscape/begin}{pdflscape}
   {
-    \pdfdict_get:nnnN {g} {Core/Page}{Rotate}\l_tmpa_tl
+    \pdfmanagement_get:nnN {Page}{Rotate}\l_tmpa_tl
     \tl_gset_eq:NN\g__pdflscape_saverotate_tl\l_tmpa_tl
     \clearpage
-    \pdfcoredict_gput:nnn{Page}{Rotate}{90}
+    \pdfmanagement_add:nnn{Page}{Rotate}{90}
   }
 \hook_gput_code:nnn {env/landscape/after}{pdflscape}
  {
   \quark_if_no_value:NTF\g__pdflscape_saverotate_tl
-   {\pdfcoredict_gremove:nn{Page}{Rotate}}
-   {\pdfcoredict_gput:nnx{Page}{Rotate}{\g__pdflscape_saverotate_tl}}
+   {\pdfmanagement_remove:nn{Page}{Rotate}}
+   {\pdfmanagement_add:nnx{Page}{Rotate}{\g__pdflscape_saverotate_tl}}
  }
 
 \endinput





More information about the latex3-commits mailing list.