[latex3-commits] [git/LaTeX3-latex3-pdfresources] testlinkstuff: catalog (c873592)

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


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

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

commit c873592dc1e2f805260c1c4b4c6a2b4c438a1572
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Apr 29 22:12:16 2019 +0200

    catalog


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

c873592dc1e2f805260c1c4b4c6a2b4c438a1572
 hluatex-experimental.def |   13 +++++++------
 test-pdfresources.tex    |    7 +++++--
 2 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/hluatex-experimental.def b/hluatex-experimental.def
index 1e39876..96febd8 100644
--- a/hluatex-experimental.def
+++ b/hluatex-experimental.def
@@ -151,7 +151,6 @@
 \ExplSyntaxOff
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\protected\def\pdfcatalog        {\pdfextension catalog }
 
 \protected\def\pdflastannot      {\numexpr\pdffeedback lastannot\relax}
 \protected\def\pdflastlink       {\numexpr\pdffeedback lastlink\relax}
@@ -987,6 +986,7 @@
     }%
   }%
 \fi
+\ExplSyntaxOn
 \def\@Form[#1]{%
   \@ifundefined{textcolor}{\let\textcolor\@gobble}{}%
   \kvsetkeys{Form}{#1}%
@@ -1005,21 +1005,21 @@
           \fi
           /DR<<%
             /Font<<%
-              /ZaDb \OBJ at ZaDb\space 0 R%
-              /Helv \OBJ at Helv\space 0 R%
+              /ZaDb~\OBJ at ZaDb\space 0~R%
+              /Helv~\OBJ at Helv\space 0~R%
             >>%
           >>%
-          /DA(/Helv 10 Tf 0 g)%
+          /DA(/Helv~10~Tf~0~g)%
           \ifHy at pdfa
           \else
             \ifHyField at NeedAppearances
-              /NeedAppearances true%
+              /NeedAppearances~true%
             \fi
           \fi
         >>%
       }%
       \edef\OBJ at acroform{\the\pdflastobj}%
-      \pdfcatalog{/AcroForm \OBJ at acroform\space 0 R}%
+      \driver_pdf_catalog_gput:nn{AcroForm}{\OBJ at acroform\c_space_tl 0~R}%
     }%
   }%
   \MakeFieldObject{%
@@ -1039,6 +1039,7 @@
     \fbox{\textcolor{yellow}{\textsf{SubmitP}}}%
   }{SubmitP}%
 }
+\ExplSyntaxOff
 \let\@endForm\ltx at empty
 \let\HyAnn at AbsPageLabel\ltx at empty
 \let\Fld at pageobjref\ltx at empty
diff --git a/test-pdfresources.tex b/test-pdfresources.tex
index e496ef2..24c5bba 100644
--- a/test-pdfresources.tex
+++ b/test-pdfresources.tex
@@ -24,7 +24,7 @@
 \makeatletter%\tracingmacros=1
 \textwidth=5cm
 \begin{document}
-
+\begin{Form}
 \makeatletter%\show\Hy at pstringdef
 
 abc%\end{document}
@@ -73,8 +73,11 @@ xxx
 \ref{a} \quad
 \ExplSyntaxOff
 \Acrobatmenu{Find}{Find}
-%\hyperlink{blblb}{yabc\\xye\\abc}
+\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