[latex3-commits] [git/LaTeX3-latex3-pdfresources] testlinkstuff: storing (ebe2b60)

Ulrike Fischer fischer at troubleshooting-tex.de
Mon Apr 29 23:49:12 CEST 2019


Repository : https://github.com/latex3/pdfresources
On branch  : testlinkstuff
Link       : https://github.com/latex3/pdfresources/commit/ebe2b60090df040e9e04c5ff7baa7dabddd30833

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

commit ebe2b60090df040e9e04c5ff7baa7dabddd30833
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Apr 29 23:49:12 2019 +0200

    storing


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

ebe2b60090df040e9e04c5ff7baa7dabddd30833
 hluatex-experimental.def |   15 +++------------
 test-pdfresources.tex    |   24 ++++++++++++++++++------
 2 files changed, 21 insertions(+), 18 deletions(-)

diff --git a/hluatex-experimental.def b/hluatex-experimental.def
index 96febd8..85ea8a1 100644
--- a/hluatex-experimental.def
+++ b/hluatex-experimental.def
@@ -885,17 +885,7 @@
 }%
 \let\HyField at afields\ltx at empty
 \let\HyField at cofields\ltx at empty
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname pdflastlink\endcsname\relax
-  \let\HyField at AddToFields\relax
-  \PackageInfo{hyperref}{%
-    You need pdfTeX 1.40.0 for setting the /Fields entry.%
-    \MessageBreak
-    Adobe Reader/Acrobat accepts an empty /Field array,%
-    \MessageBreak
-    but other PDF viewers might complain%
-  }%
-\else
+%% UF test for old pdftex removed
   \let\HyField at AuxAddToFields\ltx at gobble
   \let\HyField at AuxAddToCoFields\ltx at gobbletwo
   \def\HyField at AfterAuxOpen{\Hy at AtBeginDocument}%
@@ -985,7 +975,6 @@
       \fi
     }%
   }%
-\fi
 \ExplSyntaxOn
 \def\@Form[#1]{%
   \@ifundefined{textcolor}{\let\textcolor\@gobble}{}%
@@ -996,6 +985,8 @@
       \pdfrefobj\OBJ at ZaDb
       \pdfrefobj\OBJ at Helv
     \AtVeryEndDocument{%
+     %\driver_pdf_object_new:nn  { l_hyp_form_dict_obj } {dict}
+     %\driver_pdf_object_write:nn
       \immediate\pdfobj{%
         <<%
           /Fields[\HyField at afields]%
diff --git a/test-pdfresources.tex b/test-pdfresources.tex
index 24c5bba..b4ad29e 100644
--- a/test-pdfresources.tex
+++ b/test-pdfresources.tex
@@ -24,14 +24,29 @@
 \makeatletter%\tracingmacros=1
 \textwidth=5cm
 \begin{document}
-\begin{Form}
 \makeatletter%\show\Hy at pstringdef
 
 abc%\end{document}
+
+\pdfextension obj reserveobjnum 
+\the\pdflastobj
+
+\pdfextension obj reserveobjnum
+\the\pdflastobj
+
 \ExplSyntaxOn
+
+\cs_show:N\driver_pdf_object_new:nn
+
+\driver_pdf_object_new:nn {testobjA}{dict}
+\driver_pdf_object_new:nn {testobjB}{dict}
+\driver_pdf_object_ref:n {testobjA}
+\driver_pdf_object_ref:n {testobjB}
+\ExplSyntaxOff
+\end{document}
 \newpage
 
-\prop_show:N\g__pdf_info_dict_prop
+%\prop_show:N\g__pdf_info_dict_prop
 
 xx\driver_pdf_link_begin_user:nnw{}{/A<</Type/Action/S/URI/URI(www.blub.de)>>}
 \driver_pdf_link_end:
@@ -73,11 +88,8 @@ xxx
 \ref{a} \quad
 \ExplSyntaxOff
 \Acrobatmenu{Find}{Find}
-\TextField[bordercolor=, name=signMe]{xxx}
-
-\TextField[bordercolor=, name=signMeB]{xxx}
 %\hyperlink{blblb}{yabc\\xye\\abc}
-\end{Form}
+
 \end{document}
 \section{a}\label{a}
 \ref{a}





More information about the latex3-commits mailing list