[latex3-commits] [git/LaTeX3-latex3-pdfresources] test-new-hooks: skeleton for annotation widget (d057023)

Ulrike Fischer fischer at troubleshooting-tex.de
Thu May 14 18:38:05 CEST 2020


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

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

commit d05702356cc71bbc0212cb5895ff6026e3954923
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu May 14 18:38:05 2020 +0200

    skeleton for annotation widget


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

d05702356cc71bbc0212cb5895ff6026e3954923
 experiments/buttonfield-test.tex |  5 +----
 pdfresources.dtx                 | 10 ++++++++++
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/experiments/buttonfield-test.tex b/experiments/buttonfield-test.tex
index ab26fea..3d3cb28 100644
--- a/experiments/buttonfield-test.tex
+++ b/experiments/buttonfield-test.tex
@@ -6,9 +6,6 @@
 
 \pdf_uncompress:
 
-\pdfdict_new:n   {annot/Widget}
-\pdfdict_put:nnn {annot/Widget}{Subtype}{/Widget}
-
 \NewDocumentCommand \buttonfield { }
   {
     \group_begin:
@@ -25,6 +22,6 @@
 
 \begin{document}
 
-xxx\buttonfield
+xxx\buttonfield xxxxxxxxxxx\buttonfield
 
 \end{document} 
\ No newline at end of file
diff --git a/pdfresources.dtx b/pdfresources.dtx
index c70abbe..a52eeda 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -3233,6 +3233,16 @@
     LockedContents = 9
   }
 %    \end{macrocode}
+% \subsection{Annotations, subtype Widget}
+% The local dictionary \texttt{annot/Widget} is a sceleton
+% dictionary for this subtype. It currently contains as only entry
+% the subtype setting (the /Type is added by the backend).
+%    \begin{macrocode}
+
+\pdfdict_new:n   {annot/Widget}
+\pdfdict_put:nnn {annot/Widget}{Subtype}{/Widget}
+
+%    \end{macrocode}
 % \subsection{Annotations, subtype Link}\label{sec:links}
 % Packages like hyperref, ocgx2 and tagpdf all wants to add code
 % to link annotation. So we need commands to start and end a link which allows





More information about the latex3-commits mailing list.