[latex3-commits] [git/LaTeX3-latex3-pdfresources] reworking-annot: adapt to bitset changes (3b7f4d9)

Ulrike Fischer fischer at troubleshooting-tex.de
Wed Dec 30 00:37:50 CET 2020


Repository : https://github.com/latex3/pdfresources
On branch  : reworking-annot
Link       : https://github.com/latex3/pdfresources/commit/3b7f4d99aa9f97f2307c329b269a511291515251

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

commit 3b7f4d99aa9f97f2307c329b269a511291515251
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Wed Dec 30 00:37:50 2020 +0100

    adapt to bitset changes


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

3b7f4d99aa9f97f2307c329b269a511291515251
 l3pdfannot.dtx | 5 ++---
 l3pdfmeta.dtx  | 8 ++++----
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/l3pdfannot.dtx b/l3pdfannot.dtx
index 71530d3..d216fab 100644
--- a/l3pdfannot.dtx
+++ b/l3pdfannot.dtx
@@ -242,7 +242,7 @@
 %  It can be used for example like this:
 %  \begin{verbatim}
 %  \pdfannot_dict_put:nnn {link/URI}{F}{ \bitset_to_arabic:N \l_pdfannot_F_bitset }
-%  \bitset_set_true_key:Nn \l_pdfannot_F_bitset {Print}
+%  \bitset_set_true:Nn \l_pdfannot_F_bitset {Print}
 %  \end{verbatim}
 %  The known keys for the bitset are |Invisible|, |Hidden|,
 %  |Print|, |NoZoom|, |NoRotate|, |NoView|, |ReadOnly|, |Locked|,  |ToggleNoView|,
@@ -265,8 +265,7 @@
 % bitset for it.
 %    \begin{macrocode}
 \RequirePackage{l3bitset}
-\bitset_new:N \l_pdfannot_F_bitset
-\bitset_addto_named_index:Nn \l_pdfannot_F_bitset
+\bitset_new:Nn \l_pdfannot_F_bitset
   {
     Invisible      = 1,
     Hidden         = 2,
diff --git a/l3pdfmeta.dtx b/l3pdfmeta.dtx
index e1e650a..2e66455 100644
--- a/l3pdfmeta.dtx
+++ b/l3pdfmeta.dtx
@@ -197,10 +197,10 @@
     ,Catalog/OCProperties    = false
     ,named_actions    = {NextPage, PrevPage, FirstPage, LastPage}
     ,annot_flags      = {
-                          \bitset_set_key:Nn   \l_pdfannot_F_bitset {Print}
-                          \bitset_clear_key:Nn \l_pdfannot_F_bitset {Hidden}
-                          \bitset_clear_key:Nn \l_pdfannot_F_bitset {Invisible}
-                          \bitset_clear_key:Nn \l_pdfannot_F_bitset {NoView}
+                          \bitset_set_true:Nn   \l_pdfannot_F_bitset {Print}
+                          \bitset_set_false:Nn \l_pdfannot_F_bitset {Hidden}
+                          \bitset_set_false:Nn \l_pdfannot_F_bitset {Invisible}
+                          \bitset_set_false:Nn \l_pdfannot_F_bitset {NoView}
                         }
     % to be continued https://docs.verapdf.org/validation/pdfa-part1/
   }





More information about the latex3-commits mailing list.