[latex3-commits] [git/LaTeX3-latex3-pdfresources] splitting: moving catalog code (f764787)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue Jul 7 19:15:51 CEST 2020


Repository : https://github.com/latex3/pdfresources
On branch  : splitting
Link       : https://github.com/latex3/pdfresources/commit/f764787d058518c0642ee36b5f9eda3a9427d190

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

commit f764787d058518c0642ee36b5f9eda3a9427d190
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Jun 13 23:13:41 2020 +0200

    moving catalog code


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

f764787d058518c0642ee36b5f9eda3a9427d190
 l3pdfgdict.dtx   | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 pdfresources.dtx | 106 ------------------------------------------------------
 2 files changed, 107 insertions(+), 106 deletions(-)

diff --git a/l3pdfgdict.dtx b/l3pdfgdict.dtx
index eb2b892..3a24fa2 100644
--- a/l3pdfgdict.dtx
+++ b/l3pdfgdict.dtx
@@ -994,6 +994,113 @@
   }
 %    \end{macrocode}
 % \end{macro}
+%
+% \paragraph{Building catalog entries: AcroFrom}
+% This is the most complicated case.
+% The entries is build from
+% /Catalog/AcroForm/Fields  (array),
+% /Catalog/AcroForm/CO      (array),
+% /Catalog/AcroForm/DR/Font (dict),
+% /Catalog/AcroForm/DR      (dict),
+% /Catalog/AcroForm
+%
+% \begin{macro}{\@@_/Catalog/AcroForm_gpush:}
+%    \begin{macrocode}
+\cs_new_protected:cpn { @@_/Catalog/AcroForm_gpush: }
+  {
+    \seq_if_empty:cF { g_@@_/Catalog/AcroForm/Fields_seq }
+      {
+        \@@_backend_object_new:nn  { g_@@_/Catalog/AcroForm/Fields_obj } { array }
+        \@@_backend_object_write:nx
+            { g_@@_/Catalog/AcroForm/Fields_obj }
+            { \seq_use:cn { g_@@_/Catalog/AcroForm/Fields_seq } {~} }
+        \exp_args:Nnnx
+          \prop_gput:cnn %we have to use \prop here to avoid the handler ..
+            { \@@_name:n { Catalog/AcroForm } }
+            { Fields }
+            { \@@_backend_object_ref:n { g_@@_/Catalog/AcroForm/Fields_obj } }
+      }
+    \seq_if_empty:cF { g_@@_/Catalog/AcroForm/CO_seq }
+      {
+        \@@_backend_object_new:nn  { g_@@_/Catalog/AcroForm/CO_obj } { array }
+        \exp_args:Nnx
+          \@@_backend_object_write:nn
+            { g_@@_/Catalog/AcroForm/CO_obj }
+            { \seq_use:cn { g_@@_/Catalog/AcroForm/CO_seq } {~} }
+        \exp_args:Nnnx
+          \prop_gput:cnn %we have to use \prop here to avoid the handler ..
+            { \@@_name:n { Catalog/AcroForm } }
+            { CO }
+            { \@@_backend_object_ref:n { g_@@_/Catalog/AcroForm/CO_obj } }
+      }
+     \prop_if_empty:cF { \@@_name:n { Catalog/AcroForm/DR/Font}}
+       {
+         \@@_backend_object_new:nn { g_@@_/Catalog/AcroForm/DR/Font_obj } {dict}
+         \exp_args:Nnx
+           \@@_backend_object_write:nn
+             { g_@@_/Catalog/AcroForm/DR/Font_obj }
+             { \@@_map:n { Catalog/AcroForm/DR/Font } }
+         \exp_args:Nnnx
+           \prop_gput:cnn %we have to use \prop here to avoid the handler ..
+             { \@@_name:n { Catalog/AcroForm/DR } }
+             { Font }
+             { \@@_backend_object_ref:n { g_@@_/Catalog/AcroForm/DR/Font_obj } }
+       }
+     \prop_if_empty:cF { \@@_name:n { Catalog/AcroForm/DR}}
+       {
+         \@@_backend_object_new:nn { g_@@_/Catalog/AcroForm/DR_obj } {dict}
+         \exp_args:Nnx
+           \@@_backend_object_write:nn
+             { g_@@_/Catalog/AcroForm/DR_obj }
+             { \@@_map:n { Catalog/AcroForm/DR } }
+         \exp_args:Nnnx
+           \prop_gput:cnn %we have to use \prop here to avoid the handler ..
+             { \@@_name:n { Catalog/AcroForm } }
+             { DR }
+             { \@@_backend_object_ref:n { g_@@_/Catalog/AcroForm/DR_obj } }
+       }
+     \prop_if_empty:cF { \@@_name:n { Catalog/AcroForm} }
+       {
+         \@@_backend_object_new:nn { g_@@_/Catalog/AcroForm_obj } {dict}
+         \exp_args:Nnx
+           \@@_backend_object_write:nn
+             { g_@@_/Catalog/AcroForm_obj }
+             { \@@_map:n { Catalog/AcroForm } }
+         \exp_args:Nnnx
+           \@@_handler_gput:nnn
+             { Catalog }
+             { AcroForm }
+             { \@@_backend_object_ref:n { g_@@_/Catalog/AcroForm_obj } }
+       }
+  }
+
+%    \end{macrocode}
+% \end{macro}
+%
+% \paragraph{Building catalog entries: AF}
+% AF is an array.
+% \begin{macro}{\@@_/Catalog/AF_gpush:}
+%    \begin{macrocode}
+\cs_new_protected:cpn { @@_/Catalog/AF_gpush: }
+  {
+    \seq_if_empty:cF
+     { g_@@_/Catalog/AF_seq }
+     {
+       \@@_backend_object_new:nn  { g_@@_/Catalog/AF_obj } { array }
+       \exp_args:Nnx
+         \@@_backend_object_write:nn
+            { g_@@_/Catalog/AF_obj }
+            { \seq_use:cn { g_@@_/Catalog/AF_seq } {~} }
+       \exp_args:Nnx
+         \@@_backend_catalog_gput:nn
+           {AF}
+           {
+             \@@_backend_object_ref:n {g_@@_/Catalog/AF_obj}
+           }
+     }
+  }
+%    \end{macrocode}
+% \end{macro}
 %    \begin{macrocode}
 %</package>
 %    \end{macrocode}
diff --git a/pdfresources.dtx b/pdfresources.dtx
index 91dd69f..d5cc7d5 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -904,112 +904,6 @@
 %
 
 
-% \paragraph{Building catalog entries: AcroFrom}
-% This is the most complicated case.
-% The entries is build from
-% /Catalog/AcroForm/Fields  (array),
-% /Catalog/AcroForm/CO      (array),
-% /Catalog/AcroForm/DR/Font (dict),
-% /Catalog/AcroForm/DR      (dict),
-% /Catalog/AcroForm
-%
-% \begin{macro}{\@@_dict_/Catalog/AcroForm_gpush:}
-%    \begin{macrocode}
-\cs_new_protected:cpn { @@_dict_/Catalog/AcroForm_gpush: }
-  {
-    \seq_if_empty:cF { g_@@_dict_/Catalog/AcroForm/Fields_seq }
-      {
-        \@@_backend_object_new:nn  { g_@@_dict_/Catalog/AcroForm/Fields_obj } { array }
-        \@@_backend_object_write:nx
-            { g_@@_dict_/Catalog/AcroForm/Fields_obj }
-            { \seq_use:cn { g_@@_dict_/Catalog/AcroForm/Fields_seq } {~} }
-        \exp_args:Nnnx
-          \prop_gput:cnn %do wewe have to use \prop here to avoid the handler ...
-            { \__pdf_dict_Xname:n { Catalog/AcroForm } }
-            { Fields }
-            { \@@_backend_object_ref:n { g_@@_dict_/Catalog/AcroForm/Fields_obj } }
-      }
-    \seq_if_empty:cF { g_@@_dict_/Catalog/AcroForm/CO_seq }
-      {
-        \@@_backend_object_new:nn  { g_@@_dict_/Catalog/AcroForm/CO_obj } { array }
-        \exp_args:Nnx
-          \@@_backend_object_write:nn
-            { g_@@_dict_/Catalog/AcroForm/CO_obj }
-            { \seq_use:cn { g_@@_dict_/Catalog/AcroForm/CO_seq } {~} }
-        \exp_args:Nnnx
-          \prop_gput:cnn %we have to use \prop here to avoid the handler ..
-            { \__pdf_dict_Xname:n { Catalog/AcroForm } }
-            { CO }
-            { \@@_backend_object_ref:n { g_@@_dict_/Catalog/AcroForm/CO_obj } }
-      }
-     \prop_if_empty:cF { \@@_dict_gname:n { Catalog/AcroForm/DR/Font}}
-       {
-         \@@_backend_object_new:nn { g_@@_dict_/Catalog/AcroForm/DR/Font_obj } {dict}
-         \exp_args:Nnx
-           \@@_backend_object_write:nn
-             { g_@@_dict_/Catalog/AcroForm/DR/Font_obj }
-             { \@@_dict_map:n { Catalog/AcroForm/DR/Font } }
-         \exp_args:Nnnx
-           \prop_gput:cnn %we have to use \prop here to avoid the handler ..
-             { \__pdf_dict_Xname:n { Catalog/AcroForm/DR } }
-             { Font }
-             { \@@_backend_object_ref:n { g_@@_dict_/Catalog/AcroForm/DR/Font_obj } }
-       }
-     \prop_if_empty:cF { \@@_dict_gname:n { Catalog/AcroForm/DR}}
-       {
-         \@@_backend_object_new:nn { g_@@_dict_/Catalog/AcroForm/DR_obj } {dict}
-         \exp_args:Nnx
-           \@@_backend_object_write:nn
-             { g_@@_dict_/Catalog/AcroForm/DR_obj }
-             { \@@_dict_map:n { Catalog/AcroForm/DR } }
-         \exp_args:Nnnx
-           \prop_gput:cnn %we have to use \prop here to avoid the handler ..
-             { \__pdf_dict_Xname:n { Catalog/AcroForm } }
-             { DR }
-             { \@@_backend_object_ref:n { g_@@_dict_/Catalog/AcroForm/DR_obj } }
-       }
-     \prop_if_empty:cF { \@@_dict_gname:n { Catalog/AcroForm} }
-       {
-         \@@_backend_object_new:nn { g_@@_dict_/Catalog/AcroForm_obj } {dict}
-         \exp_args:Nnx
-           \@@_backend_object_write:nn
-             { g_@@_dict_/Catalog/AcroForm_obj }
-             { \@@_dict_map:n { Catalog/AcroForm } }
-         \exp_args:Nnnx
-           \@@_dict_handler_put:nnn
-             { Catalog }
-             { AcroForm }
-             { \@@_backend_object_ref:n { g_@@_dict_/Catalog/AcroForm_obj } }
-       }
-  }
-
-%    \end{macrocode}
-% \end{macro}
-%
-% \paragraph{Building catalog entries: AF}
-% AF is an array.
-% \begin{macro}{\@@_dict_/Catalog/AF_gpush:}
-%    \begin{macrocode}
-\cs_new_protected:cpn { @@_dict_/Catalog/AF_gpush: }
-  {
-    \seq_if_empty:cF
-     { g_@@_dict_/Catalog/AF_seq }
-     {
-       \@@_backend_object_new:nn  { g_@@_dict_/Catalog/AF_obj } { array }
-       \exp_args:Nnx
-         \@@_backend_object_write:nn
-            { g_@@_dict_/Catalog/AF_obj }
-            { \seq_use:cn { g_@@_dict_/Catalog/AF_seq } {~} }
-       \exp_args:Nnx
-         \@@_backend_catalog_gput:nn
-           {AF}
-           {
-             \@@_backend_object_ref:n {g_@@_dict_/Catalog/AF_obj}
-           }
-     }
-  }
-%    \end{macrocode}
-% \end{macro}
 %
 % \paragraph{Building catalog entries: MarkInfo}
 % \begin{macro}{\@@_dict_/Catalog/MarkInfo_gpush:}





More information about the latex3-commits mailing list.