[latex3-commits] [git/LaTeX3-latex3-pdfresources] testlinkstuff: xform, more changes (59752c9)

Ulrike Fischer fischer at troubleshooting-tex.de
Sat May 11 23:32:54 CEST 2019


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

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

commit 59752c92aba13f11d2b6bb498251b6204f953556
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat May 11 23:32:54 2019 +0200

    xform, more changes


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

59752c92aba13f11d2b6bb498251b6204f953556
 hluatex-experimental.def |   24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/hluatex-experimental.def b/hluatex-experimental.def
index 0806c8b..3b9aca4 100644
--- a/hluatex-experimental.def
+++ b/hluatex-experimental.def
@@ -866,12 +866,12 @@
 %  \Hy at Message{Sorry, pdftex does not support FORM gauges}%
 %}
 
-\def\MakeFieldObject#1#2{\sbox0{#1}%
-  \immediate\saveboxresource0 %
-  \expandafter\edef\csname #2Object\endcsname{%
-    \the\lastsavedboxresourceindex\space 0 R%
+\ExplSyntaxOn
+\def\MakeFieldObject#1#2
+ {
+  \hbox_set:Nn\l_tmpa_box {#1}
+  \driver_pdf_xform_new:nnnN { #2 }{}{} \l_tmpa_box
   }%
-}%
 \let\HyField at afields\ltx at empty
 \let\HyField at cofields\ltx at empty
 %% UF test for old pdftex removed
@@ -879,7 +879,6 @@
   \let\HyField at AuxAddToCoFields\ltx at gobbletwo
   \def\HyField at AfterAuxOpen{\Hy at AtBeginDocument}%
 
-\ExplSyntaxOn
 
   \def\HyField at ABD@AuxAddToCoFields#1#2{%
     \group_begin:
@@ -1016,15 +1015,15 @@
       \selectfont
       \char123
     \group_end:
-   }{Ding}
+   }{__hyp_xform_Ding}
   \MakeFieldObject
    {
     \fbox{\textcolor{yellow}{\textsf{Submit}}} %color?
-   }{Submit}
+   }{__hyp_xform_Submit}
   \MakeFieldObject
    {
     \fbox{\textcolor{yellow}{\textsf{SubmitP}}} %color?
-   }{SubmitP}
+   }{__hyp_xform_SubmitP}
 }
 \ExplSyntaxOff
 \let\@endForm\ltx at empty
@@ -1186,7 +1185,7 @@
          <<
          /N
           <<
-          /\@currValue\c_space_tl \DingObject
+          /\@currValue\c_space_tl \driver_pdf_xform_ref:n {__hyp_xform_Ding}
           >>
          >>
       }
@@ -1267,7 +1266,10 @@
       {widget} %perhaps more types needed
       {
         \PDFForm at Submit
-       /AP<</N~\SubmitObject/D~\SubmitPObject>>
+       /AP<<
+          /N~\driver_pdf_xform_ref:n {__hyp_xform_Submit}~
+          /D~\driver_pdf_xform_ref:n {__hyp_xform_SubmitP}
+         >>
        }
       { \MakeButtonField{#2} }
     \HyField at AddToFields





More information about the latex3-commits mailing list