[latex3-commits] [git/LaTeX3-latex3-pdfresources] textfields: testing MK (a486a7c)

Ulrike Fischer fischer at troubleshooting-tex.de
Mon Apr 5 00:47:24 CEST 2021


Repository : https://github.com/latex3/pdfresources
On branch  : textfields
Link       : https://github.com/latex3/pdfresources/commit/a486a7cec0bc9102729cf3ae1ba01571487e4a02

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

commit a486a7cec0bc9102729cf3ae1ba01571487e4a02
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Apr 5 00:47:24 2021 +0200

    testing MK


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

a486a7cec0bc9102729cf3ae1ba01571487e4a02
 experiments/testfield1.tex | 31 +++++++++++++++++--------------
 1 file changed, 17 insertions(+), 14 deletions(-)

diff --git a/experiments/testfield1.tex b/experiments/testfield1.tex
index 38bd44c..796ce39 100644
--- a/experiments/testfield1.tex
+++ b/experiments/testfield1.tex
@@ -76,9 +76,13 @@
 \pdffield_store_appearance:nn {text/default}
  { { \color_select:n{black!5!white}\rule{\paperwidth}{\paperheight} } }
 
+\pdffield_store_appearance:nn {text/down}
+ { { \color_select:n{red!50!white}\rule{\paperwidth}{\paperheight} } }
+
 \cs_new_protected:Npn \__pdffield_text_annot_add:nnnn #1 #2 #3 #4 %name, wd, ht, dp,
   {
     \group_begin:
+    \pdfdict_put:nnx {l__pdffield/text/annot}{MK}{<</BG [1~1~0]>>}
     \pdfdict_put:nnx {l__pdffield/text/annot}{AP}{<<\pdfdict_use:n{l__pdffield/text/annot/AP}>>}
     \pdfmeta_standard_verify:nF
       {annot_flags}
@@ -180,6 +184,16 @@
               {
                  \pdfxform_ref:n { __pdffield_#1}
               }
+            \pdfdict_put:nnn {l__pdffield/text/annot/AP}
+              {D}
+              {
+                 \pdfxform_ref:n { __pdffield_text/down}
+              }
+           \pdfdict_put:nnn {l__pdffield/text/annot/AP}
+              {R}
+              {
+                 \pdfxform_ref:n { __pdffield_text/down}
+              }
           }
           {
             \msg_error:nnnn{pdffield}{appearance-missing}{#1}{normal}
@@ -276,23 +290,12 @@
 %\pdfvariable omitcidset=1
 %\setmainfont{lmroman10-regular.otf} %replaced by arial CIDFontType0
 \begin{document}
-% include chars : \pdfextension includechars (initialize the font too)
-% pdf.includechar(<fontid>, <Unicode codepoint>) 
-% for chinese check cid 
-
-些障礙ا
-
-\sffamily
-öäß
-\end{document}
 \ExplSyntaxOn
 
+\__pdffield_text_add:n {width=4cm,name=default,height=\baselineskip}
 
-
-
-\smash{\__pdffield_text_add:n {name=default,height=\baselineskip}}
-
-
+\ExplSyntaxOff
+\end{document}
 %\pdfmanagement_add:nxx{Catalog/AcroForm/DR/Font}{MyBlub}{\pdf_object_ref_last:}
 %\sffamily
 \bitset_set_true:Nn  \l__pdffield_F_bitset {Print}





More information about the latex3-commits mailing list.