[latex3-commits] [git/LaTeX3-latex3-pdfresources] develop: add AA test (0d54748)

Ulrike Fischer fischer at troubleshooting-tex.de
Thu May 6 23:03:40 CEST 2021


Repository : https://github.com/latex3/pdfresources
On branch  : develop
Link       : https://github.com/latex3/pdfresources/commit/0d5474847e82711715c8c4c2190878c4eaf852c8

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

commit 0d5474847e82711715c8c4c2190878c4eaf852c8
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu May 6 23:03:40 2021 +0200

    add AA test


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

0d5474847e82711715c8c4c2190878c4eaf852c8
 l3pdfannot.dtx | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/l3pdfannot.dtx b/l3pdfannot.dtx
index b0b6fd3..a066daf 100644
--- a/l3pdfannot.dtx
+++ b/l3pdfannot.dtx
@@ -480,12 +480,16 @@
   {
     \hook_use:n { pdfannot/widget/before }
     \group_begin:
-    \pdfdict_if_empty:nF { l_@@/widget/AA }
+    \pdfmeta_standard_verify:nT
+      {annot_widget_no_AA}
       {
-        \pdf_object_unnamed_write:nx {dict}{\pdfdict_use:n{l_@@/widget/AA}}
-        \pdfdict_put:nnx { l_@@/widget }
-             {AA}
-             {\pdf_object_ref_last:}
+        \pdfdict_if_empty:nF { l_@@/widget/AA }
+          {
+            \pdf_object_unnamed_write:nx {dict}{\pdfdict_use:n{l_@@/widget/AA}}
+            \pdfdict_put:nnx { l_@@/widget }
+              {AA}
+              {\pdf_object_ref_last:}
+          }
       }
     \pdfdict_if_empty:nF { l_@@/widget/AP }
       {





More information about the latex3-commits mailing list.