[latex3-commits] [git/LaTeX3-latex3-pdfresources] develop: change object_new command (7ae5790)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue Aug 30 21:02:09 CEST 2022


Repository : https://github.com/latex3/pdfresources
On branch  : develop
Link       : https://github.com/latex3/pdfresources/commit/7ae5790299ff260d8a9e6ef6d02bcb0a74b97eda

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

commit 7ae5790299ff260d8a9e6ef6d02bcb0a74b97eda
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Tue Aug 30 21:02:09 2022 +0200

    change object_new command


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

7ae5790299ff260d8a9e6ef6d02bcb0a74b97eda
 l3backend-testphase.dtx       |  4 ++--
 l3pdffield-action.dtx         |  2 +-
 l3pdffield-checkbox.dtx       |  4 ++--
 l3pdffield-choice.dtx         |  2 +-
 l3pdffield-pushbutton.dtx     |  2 +-
 l3pdffield-radiobutton.dtx    |  4 ++--
 l3pdffield-textfield.dtx      |  2 +-
 l3pdffield.dtx                |  6 +++---
 l3pdffile.dtx                 |  8 ++++----
 l3pdfmanagement.dtx           | 24 ++++++++++++------------
 l3pdfmeta.dtx                 |  2 +-
 testfiles-dvips/catalogAF.pvt |  2 +-
 testfiles/bdc-properties.pvt  |  2 +-
 13 files changed, 32 insertions(+), 32 deletions(-)

diff --git a/l3backend-testphase.dtx b/l3backend-testphase.dtx
index e295d60..7b3fc31 100644
--- a/l3backend-testphase.dtx
+++ b/l3backend-testphase.dtx
@@ -580,7 +580,7 @@
 %<*pdftex|luatex>
 \clist_map_inline:Nn \c_@@_backend_PageResources_clist
   {
-    \pdf_object_new:nn {@@/Page/Resources/#1} {dict}
+    \pdf_object_new:n {@@/Page/Resources/#1}
     \cs_if_exist:NT \tex_directlua:D
       {
         \tex_directlua:D
@@ -649,7 +649,7 @@
 %
 \clist_map_inline:Nn \c_@@_backend_PageResources_clist
   {
-    \pdf_object_new:nn   { @@/Page/Resources/#1 } { dict }
+    \pdf_object_new:n   { @@/Page/Resources/#1 } 
     \hook_gput_code:nnn
       {shipout/firstpage}
       {pdf}
diff --git a/l3pdffield-action.dtx b/l3pdffield-action.dtx
index b10c220..897b754 100644
--- a/l3pdffield-action.dtx
+++ b/l3pdffield-action.dtx
@@ -419,7 +419,7 @@
 % ,\pdf_name_from_unicode_e:n
 % ,\pdf_object_if_exist:nTF
 % ,\pdf_object_if_exist:nF
-% ,\pdf_object_new:nn
+% ,\pdf_object_new:n
 % ,\pdf_object_ref:n
 % ,\pdf_object_ref_last:
 % ,\pdf_object_unnamed_write:nn
diff --git a/l3pdffield-checkbox.dtx b/l3pdffield-checkbox.dtx
index 4321a63..0211212 100644
--- a/l3pdffield-checkbox.dtx
+++ b/l3pdffield-checkbox.dtx
@@ -322,7 +322,7 @@
 % ,\pdf_name_from_unicode_e:n
 % ,\pdf_object_if_exist:nTF
 % ,\pdf_object_if_exist:nF
-% ,\pdf_object_new:nn
+% ,\pdf_object_new:n
 % ,\pdf_object_ref:n
 % ,\pdf_object_ref_last:
 % ,\pdf_object_unnamed_write:nn
@@ -542,7 +542,7 @@
       {
         \pdf_object_if_exist:nF {@@/checkbox/AP/#1}
           {
-            \pdf_object_new:nn {@@/checkbox/AP/#1}{dict}
+            \pdf_object_new:n {@@/checkbox/AP/#1}
             \pdf_object_write:nnx
               {@@/checkbox/AP/#1} { dict }
               {
diff --git a/l3pdffield-choice.dtx b/l3pdffield-choice.dtx
index acddb46..b691354 100644
--- a/l3pdffield-choice.dtx
+++ b/l3pdffield-choice.dtx
@@ -366,7 +366,7 @@
 % ,\pdf_name_from_unicode_e:n
 % ,\pdf_object_if_exist:nTF
 % ,\pdf_object_if_exist:nF
-% ,\pdf_object_new:nn
+% ,\pdf_object_new:n
 % ,\pdf_object_ref:n
 % ,\pdf_object_ref_last:
 % ,\pdf_object_unnamed_write:nn
diff --git a/l3pdffield-pushbutton.dtx b/l3pdffield-pushbutton.dtx
index f12c391..0fa9f5e 100644
--- a/l3pdffield-pushbutton.dtx
+++ b/l3pdffield-pushbutton.dtx
@@ -348,7 +348,7 @@
 % ,\pdf_name_from_unicode_e:n
 % ,\pdf_object_if_exist:nTF
 % ,\pdf_object_if_exist:nF
-% ,\pdf_object_new:nn
+% ,\pdf_object_new:n
 % ,\pdf_object_ref:n
 % ,\pdf_object_ref_last:
 % ,\pdf_object_unnamed_write:nn
diff --git a/l3pdffield-radiobutton.dtx b/l3pdffield-radiobutton.dtx
index fbbf1e3..73ecc3b 100644
--- a/l3pdffield-radiobutton.dtx
+++ b/l3pdffield-radiobutton.dtx
@@ -516,7 +516,7 @@
 % ,\pdf_name_from_unicode_e:n
 % ,\pdf_object_if_exist:nTF
 % ,\pdf_object_if_exist:nF
-% ,\pdf_object_new:nn
+% ,\pdf_object_new:n
 % ,\pdf_object_ref:n
 % ,\pdf_object_ref_last:
 % ,\pdf_object_unnamed_write:nn
@@ -691,7 +691,7 @@
 % We need an object and a seq for the Opt array.
 % The object is written at the end of the document.
 %    \begin{macrocode}
-        \pdf_object_new:nn {@@/field/@@/radio-Opt/#1}{array}
+        \pdf_object_new:n {@@/field/@@/radio-Opt/#1}
         \pdfdict_put:nnx { l_@@/field }{Opt} { \pdf_object_ref:n {@@/field/@@/radio-Opt/#1} }
         \seq_new:c { g_@@_radio_opt_#1_seq }
         \hook_gput_code:nnn {shipout/lastpage}{pdffield/radio}
diff --git a/l3pdffield-textfield.dtx b/l3pdffield-textfield.dtx
index 2e30615..a720b85 100644
--- a/l3pdffield-textfield.dtx
+++ b/l3pdffield-textfield.dtx
@@ -419,7 +419,7 @@
 % ,\pdf_name_from_unicode_e:n
 % ,\pdf_object_if_exist:nTF
 % ,\pdf_object_if_exist:nF
-% ,\pdf_object_new:nn
+% ,\pdf_object_new:n
 % ,\pdf_object_ref:n
 % ,\pdf_object_ref_last:
 % ,\pdf_object_unnamed_write:nn
diff --git a/l3pdffield.dtx b/l3pdffield.dtx
index bda7d80..d82b596 100644
--- a/l3pdffield.dtx
+++ b/l3pdffield.dtx
@@ -921,7 +921,7 @@
 % ,\NeedsTeXFormat
 % ,\pdf_name_from_unicode_e:n
 % ,\pdf_object_if_exist:nTF
-% ,\pdf_object_new:nn
+% ,\pdf_object_new:n
 % ,\pdf_object_ref:n
 % ,\pdf_object_ref_last:
 % ,\pdf_object_unnamed_write:nx
@@ -1167,8 +1167,8 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_field:n #1
   {
-    \pdf_object_new:nn {@@/field/#1}      {dict}
-    \pdf_object_new:nn {@@/field/Kids/#1} {array}
+    \pdf_object_new:n {@@/field/#1}
+    \pdf_object_new:n {@@/field/Kids/#1} 
     \tl_if_empty:NTF \l_@@_currentparent_tl
       {
         \pdfmanagement_add:nnx
diff --git a/l3pdffile.dtx b/l3pdffile.dtx
index 7d5bff0..eaf463e 100644
--- a/l3pdffile.dtx
+++ b/l3pdffile.dtx
@@ -335,7 +335,7 @@
 %  created stream.
 %
 %  \begin{verbatim}
-%  \pdf_object_new:nn{module/filespec/A}{dict} % a new filespec object
+%  \pdf_object_new:n {module/filespec/A} % a new filespec object
 %  \pdf_object_ref:n {module/filespec/A}       % a reference
 %  \pdf_object_unnamed_write:nn { stream }{ {...}{content} } %writing the stream
 %  % filling and writing the filespec dictionary:
@@ -704,7 +704,7 @@
            }
         \tl_if_blank:nTF { #2 }
           {
-            \pdf_object_new:nn   { #3 } {dict}
+            \pdf_object_new:n   { #3 }
             \exp_args:Nnnx
               \@@_filespec_write:nnn
                 %#1 dict, #2 target file name, #3 object ref
@@ -713,7 +713,7 @@
                 {\l_@@_embed_ref_tl}
           }
           {
-            \pdf_object_new:nn   { #3 } {dict}
+            \pdf_object_new:n   { #3 }
             \exp_args:Nnnx
               \@@_filespec_write:nnn
                 %#1 dict, #2 target file name, #3 object ref
@@ -747,7 +747,7 @@
            { #1 }
            \l_@@_automimetype_tl
          \tl_set:Nx \l_@@_embed_ref_tl { \pdf_object_ref_last: }
-         \pdf_object_new:nn   { #3 } {dict}
+         \pdf_object_new:n   { #3 }
          \exp_args:Nnxx
            \@@_filespec_write:nnn
              %#1 dict, #2 target file name, #3 object ref
diff --git a/l3pdfmanagement.dtx b/l3pdfmanagement.dtx
index 5fd2217..c06d9c7 100644
--- a/l3pdfmanagement.dtx
+++ b/l3pdfmanagement.dtx
@@ -1279,7 +1279,7 @@
     \prop_if_empty:cF
      { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AA } }
      {
-       \pdf_object_new:nn  { @@/Catalog/AA } { dict }
+       \pdf_object_new:n  { @@/Catalog/AA }
        \pdf_object_write:nnx
             { @@/Catalog/AA }{ dict }
             { \pdfdict_use:n { g__pdf_Core/Catalog/AA } }
@@ -1309,7 +1309,7 @@
   {
     \seq_if_empty:cF { g_@@_/Catalog/AcroForm/Fields_seq }
       {
-        \pdf_object_new:nn  { @@/Catalog/AcroForm/Fields } { array }
+        \pdf_object_new:n  { @@/Catalog/AcroForm/Fields }
         \pdf_object_write:nnx
             { @@/Catalog/AcroForm/Fields } { array }
             { \seq_use:cn { g_@@_/Catalog/AcroForm/Fields_seq } {~} }
@@ -1321,7 +1321,7 @@
       }
     \seq_if_empty:cF { g_@@_/Catalog/AcroForm/CO_seq }
       {
-        \pdf_object_new:nn  { @@/Catalog/AcroForm/CO } { array }
+        \pdf_object_new:n  { @@/Catalog/AcroForm/CO }
         \pdf_object_write:nnx
             { @@/Catalog/AcroForm/CO } { array }
             { \seq_use:cn { g_@@_/Catalog/AcroForm/CO_seq } {~} }
@@ -1333,7 +1333,7 @@
       }
      \prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm/DR/Font}}
        {
-         \pdf_object_new:nn { @@/Catalog/AcroForm/DR/Font } {dict}
+         \pdf_object_new:n { @@/Catalog/AcroForm/DR/Font }
          \pdf_object_write:nnx
              { @@/Catalog/AcroForm/DR/Font } { dict }
              { \pdfdict_use:n { g__pdf_Core/Catalog/AcroForm/DR/Font } }
@@ -1345,7 +1345,7 @@
        }
      \prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm/DR}}
        {
-         \pdf_object_new:nn { @@/Catalog/AcroForm/DR } {dict}
+         \pdf_object_new:n { @@/Catalog/AcroForm/DR }
          \pdf_object_write:nnx
              { @@/Catalog/AcroForm/DR } { dict }
              { \pdfdict_use:n { g__pdf_Core/Catalog/AcroForm/DR } }
@@ -1357,7 +1357,7 @@
        }
      \prop_if_empty:cF { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/AcroForm} }
        {
-         \pdf_object_new:nn { @@/Catalog/AcroForm } {dict}
+         \pdf_object_new:n { @@/Catalog/AcroForm }
          \pdf_object_write:nnx
              { @@/Catalog/AcroForm } { dict }
              { \pdfdict_use:n { g__pdf_Core/Catalog/AcroForm } }
@@ -1381,7 +1381,7 @@
     \seq_if_empty:cF
      { g_@@_/Catalog/AF_seq }
      {
-       \pdf_object_new:nn  { @@/Catalog/AF } { array }
+       \pdf_object_new:n  { @@/Catalog/AF }
        \pdf_object_write:nnx
             { @@/Catalog/AF } { array }
             { \seq_use:cn { g_@@_/Catalog/AF_seq } {~} }
@@ -1404,7 +1404,7 @@
     \prop_if_empty:cF
      { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/MarkInfo } }
      {
-       \pdf_object_new:nn  { @@/Catalog/MarkInfo } { dict }
+       \pdf_object_new:n  { @@/Catalog/MarkInfo }
        \pdf_object_write:nnx
           { @@/Catalog/MarkInfo } { dict }
           { \pdfdict_use:n { g__pdf_Core/Catalog/MarkInfo } }
@@ -1444,7 +1444,7 @@
       >
       { 0 }
       {
-        \pdf_object_new:nn  { @@/Catalog/OCProperties } { dict }
+        \pdf_object_new:n  { @@/Catalog/OCProperties }
         \seq_gpop_left:cN { g_@@_/Catalog/OCProperties/Configs_seq} \l_@@_tmpa_tl
         \pdf_object_write:nnx {@@/Catalog/OCProperties} {dict}
            {
@@ -1474,7 +1474,7 @@
     \seq_if_empty:cF
      { g_@@_/Catalog/OutputIntents_seq }
      {
-       \pdf_object_new:nn  { @@/Catalog/OutputIntents } { array }
+       \pdf_object_new:n  { @@/Catalog/OutputIntents }
        \pdf_object_write:nnx
             { @@/Catalog/OutputIntents } { array }
             { \seq_use:cn { g_@@_/Catalog/OutputIntents_seq } {~} }
@@ -1498,7 +1498,7 @@
     \seq_if_empty:cF
      { g_@@_/Catalog/Requirements_seq }
      {
-       \pdf_object_new:nn  { @@/Catalog/Requirements } { array }
+       \pdf_object_new:n  { @@/Catalog/Requirements }
        \pdf_object_write:nnx
             { @@/Catalog/Requirements } { array }
             { \seq_use:cn { g_@@_/Catalog/Requirements_seq } {~} }
@@ -1522,7 +1522,7 @@
     \prop_if_empty:cF
      { \__kernel_pdfdict_name:n { g__pdf_Core/Catalog/ViewerPreferences } }
      {
-       \pdf_object_new:nn  { @@/Catalog/ViewerPreferences } { dict }
+       \pdf_object_new:n  { @@/Catalog/ViewerPreferences } 
        \pdf_object_write:nnx
             { @@/Catalog/ViewerPreferences } { dict }
             { \pdfdict_use:n { g__pdf_Core/Catalog/ViewerPreferences } }
diff --git a/l3pdfmeta.dtx b/l3pdfmeta.dtx
index 3a0dc42..237f3e1 100644
--- a/l3pdfmeta.dtx
+++ b/l3pdfmeta.dtx
@@ -889,7 +889,7 @@
   {
     \pdf_object_if_exist:nF { __color_icc_ #1 }
       {
-        \pdf_object_new:nn  { __color_icc_ #1 }{fstream}
+        \pdf_object_new:n  { __color_icc_ #1 }
         \pdf_object_write:nnx { __color_icc_ #1 } { fstream }
          {
            {/N\c_space_tl
diff --git a/testfiles-dvips/catalogAF.pvt b/testfiles-dvips/catalogAF.pvt
index 1e33ab0..765d2d3 100644
--- a/testfiles-dvips/catalogAF.pvt
+++ b/testfiles-dvips/catalogAF.pvt
@@ -11,7 +11,7 @@
 \ExplSyntaxOn
 %senseless values ...
 \pdf_object_new:n   {filespec1}
-\pdf_object_write:nnn {filespec1}{dict {/Type /Filespec /UF (example1.pdf)}
+\pdf_object_write:nnn {filespec1}{dict} {/Type /Filespec /UF (example1.pdf)}
 \pdf_object_new:n   {filespec2}
 \pdf_object_write:nnn {filespec2}{dict} {/Type /Filespec /UF (example2.pdf)}
 
diff --git a/testfiles/bdc-properties.pvt b/testfiles/bdc-properties.pvt
index f494593..013af4f 100644
--- a/testfiles/bdc-properties.pvt
+++ b/testfiles/bdc-properties.pvt
@@ -10,7 +10,7 @@
 \pdf_object_new:n   {objA}
 \pdf_object_write:nnn {objA}{dict}{/Type/Artifact}
 
-\pdf_object_new:n   {objB}}
+\pdf_object_new:n   {objB}
 \pdf_object_write:nnn {objB}{dict}{/ActualText~(abc)}
 
 \vspace*{44\baselineskip}





More information about the latex3-commits mailing list.