[latex3-commits] [git/LaTeX3-latex3-pdfresources] test-new-hooks: move object test to l3pdf (9c89b63)

Ulrike Fischer fischer at troubleshooting-tex.de
Fri May 15 17:50:19 CEST 2020


Repository : https://github.com/latex3/pdfresources
On branch  : test-new-hooks
Link       : https://github.com/latex3/pdfresources/commit/9c89b63c268c98d21ad5c910c40192d610777173

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

commit 9c89b63c268c98d21ad5c910c40192d610777173
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Fri May 15 17:50:19 2020 +0200

    move object test to l3pdf


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

9c89b63c268c98d21ad5c910c40192d610777173
 l3pdffile.dtx                  | 14 +-------------
 newpackages/new-attachfile.sty |  2 +-
 newpackages/new-pdfescape.sty  |  3 ---
 3 files changed, 2 insertions(+), 17 deletions(-)

diff --git a/l3pdffile.dtx b/l3pdffile.dtx
index 42730e3..9109944 100644
--- a/l3pdffile.dtx
+++ b/l3pdffile.dtx
@@ -255,18 +255,6 @@
 %<@@=pdf>
 \cs_set_eq:NN \@@_file_filename_convert_to_print:nN \pdftool_textstringhex_print:nN
 %    \end{macrocode}
-%    \begin{macrocode}
-% https://github.com/latex3/latex3/issues/711
-\prg_new_conditional:Npnn \__pdf_backend_object_if_exist:n #1 { p , T , F , TF }
-  {
-    \int_if_exist:cTF { c__pdf_backend_object_ \tl_to_str:n {#1} _int }
-     { \prg_return_true: }
-     { \prg_return_false:}
-  }
-
-\prg_new_eq_conditional:NNn \pdfobject_if_exist:n\__pdf_backend_object_if_exist:n
-  { TF , T , F , p }
-%    \end{macrocode}
 % \subsection{Messages}
 %    \begin{macrocode}
 \msg_new:nnn { pdffile } { file-not-found }
@@ -465,7 +453,7 @@
    %\Arg{source filename} \Arg{target filename} \Arg{ object name }
   { %               if #1 empty => only filespec
     %               if #2 empty => = #1
-    \pdfobject_if_exist:nTF { #3 }
+    \pdf_object_if_exist:nTF { #3 }
       {
         \msg_error:nnn { pdffile }{ object-exists } { #3 }
       }
diff --git a/newpackages/new-attachfile.sty b/newpackages/new-attachfile.sty
index 44b88f4..3fa8296 100644
--- a/newpackages/new-attachfile.sty
+++ b/newpackages/new-attachfile.sty
@@ -385,7 +385,7 @@
 % embed the file and create the filespec dictionary:
 \cs_new_protected:Npn \__atfi_file_embed:nnn #1 #2 #3 % #1 keys, #2 symbolic name, #3 file name
   {
-    \pdfobject_if_exist:nTF { g__atfi_file_obj_#2 }
+    \pdf_object_if_exist:nTF { g__atfi_file_obj_#2 }
       {
         % message ...
         \msg_warning:nnnn {atfi}{name-exist}{#2}{#3}
diff --git a/newpackages/new-pdfescape.sty b/newpackages/new-pdfescape.sty
index 7852b66..3e4b1f8 100644
--- a/newpackages/new-pdfescape.sty
+++ b/newpackages/new-pdfescape.sty
@@ -2,9 +2,6 @@
   {temporary escape commands and tools for PDF}
 %very temporarly until this is in l3 properly!!!!
 
-%% test if object exist, doesn't belong here ...
-\prg_new_eq_conditional:NNn \pdfobject_if_exist:n\__pdf_backend_object_if_exist:n
-  { TF , T , F , p }
 
 
 %% escape a pdfname expandably:





More information about the latex3-commits mailing list.