[latex3-commits] [git/LaTeX3-latex3-pdfresources] test-checkbox: remove additional spec from widget box, can lead to duplicates (3572725)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue Mar 2 23:53:13 CET 2021


Repository : https://github.com/latex3/pdfresources
On branch  : test-checkbox
Link       : https://github.com/latex3/pdfresources/commit/35727258485fe15f5aa92ff2a5bba4e6672b8077

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

commit 35727258485fe15f5aa92ff2a5bba4e6672b8077
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Tue Mar 2 23:53:13 2021 +0100

    remove additional spec from widget box, can lead to duplicates


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

35727258485fe15f5aa92ff2a5bba4e6672b8077
 l3pdfannot.dtx | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/l3pdfannot.dtx b/l3pdfannot.dtx
index ad9fd5a..503f9ff 100644
--- a/l3pdfannot.dtx
+++ b/l3pdfannot.dtx
@@ -303,11 +303,11 @@
 % \begin{function}[added = 2021-03-02]
 %   { \pdfannot_widget_box:nnnn }
 %   \begin{syntax}
-%     \cs{pdfannot_widget:nnnn}  \Arg{width} \Arg{height} \Arg{depth} \Arg{annot spec}
+%     \cs{pdfannot_widget:nnnn}  \Arg{width} \Arg{height} \Arg{depth}
 %   \end{syntax}
 %   This creates an \texttt{/Type/Annot} object with the given dimensions.
 %   It will then insert the attribute dictionary of the widget
-%   additionally to the manually given \meta{annot spec}.
+%   as \meta{annot spec}.
 %   The hooks \texttt{pdfannot/widget/before} and \texttt{pdfannot/widget/after}
 %   are executed before and after the widget.
 % \end{function}
@@ -410,14 +410,13 @@
  \hook_new_pair:nn
    {pdfannot/widget/begin}
    {pdfannot/widget/end}
-\cs_new_protected:Npn \pdfannot_widget_box:nnnn #1 #2 #3 #4
+\cs_new_protected:Npn \pdfannot_widget_box:nnn #1 #2 #3 
   {
     \hook_use:n { pdfannot/widget/before}
     \exp_args:Nx
     \__pdf_backend_annotation:nnnn {#1}{#2}{#3}
       {
         \pdfdict_use:n { l_@@/widget}
-        #4
       }
     \hook_use:n { pdfannot/widget/after}
     \bool_gset_false:N\g_@@_use_lastlink_bool





More information about the latex3-commits mailing list.