[latex3-commits] [git/LaTeX3-latex3-pdfresources] develop: move new object out of filespec_write (7769c84)

Ulrike Fischer fischer at troubleshooting-tex.de
Wed Apr 28 00:51:38 CEST 2021


Repository : https://github.com/latex3/pdfresources
On branch  : develop
Link       : https://github.com/latex3/pdfresources/commit/7769c8427cb421243df459fb41927ccf50629f97

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

commit 7769c8427cb421243df459fb41927ccf50629f97
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Wed Apr 28 00:51:38 2021 +0200

    move new object out of filespec_write


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

7769c8427cb421243df459fb41927ccf50629f97
 l3pdffile.dtx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/l3pdffile.dtx b/l3pdffile.dtx
index f7b5c79..7809732 100644
--- a/l3pdffile.dtx
+++ b/l3pdffile.dtx
@@ -619,7 +619,6 @@
         \msg_error:nn {pdffile}{target-name-missing}
       }
       {
-        \pdf_object_new:nn   { #1 } {dict}
         \group_begin:
           \@@_filename_convert_to_print:nN  { #2 } \l_@@_tmpa_str
           \pdfdict_put:nnx {l_pdffile/Filespec}{F} { \l_@@_tmpa_str }
@@ -639,7 +638,7 @@
 
 %#1 {source filename}
 %#2 {target filename}
-%#3 { filespec object name } (will internally get a prefix!)
+%#3 { filespec object name } (will internally get a prefix! ??)
 \cs_new_protected:Npn \pdffile_embed_file:nnn #1 #2 #3
   { %               if #1 empty => only filespec
     %               if #2 empty => = #1
@@ -682,6 +681,7 @@
            }
         \tl_if_blank:nTF { #2 }
           {
+            \pdf_object_new:nn   { #3 } {dict}
             \exp_args:Nnnx
               \@@_filespec_write:nnn
                 %#1 dict, #2 target file name, #3 object ref
@@ -690,6 +690,7 @@
                 {\l_@@_embed_ref_tl}
           }
           {
+            \pdf_object_new:nn   { #3 } {dict}
             \exp_args:Nnnx
               \@@_filespec_write:nnn
                 %#1 dict, #2 target file name, #3 object ref
@@ -723,6 +724,7 @@
            { #1 }
            \l_@@_automimetype_tl
          \tl_set:Nx \l_@@_embed_ref_tl { \pdf_object_ref_last: }
+         \pdf_object_new:nn   { #3 } {dict}
          \exp_args:Nnxx
            \@@_filespec_write:nnn
              %#1 dict, #2 target file name, #3 object ref





More information about the latex3-commits mailing list.