[latex3-commits] [git/LaTeX3-latex3-pdfresources] reworking-annot: add F flag to annot dicts (d6ccfba)

Ulrike Fischer fischer at troubleshooting-tex.de
Mon Jan 4 22:52:47 CET 2021


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

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

commit d6ccfba2e5b5a9774a1c036c7740d27ef9b1713f
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Jan 4 22:52:47 2021 +0100

    add F flag to annot dicts


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

d6ccfba2e5b5a9774a1c036c7740d27ef9b1713f
 l3pdfmeta.dtx | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/l3pdfmeta.dtx b/l3pdfmeta.dtx
index a3ba9fb..1f08acf 100644
--- a/l3pdfmeta.dtx
+++ b/l3pdfmeta.dtx
@@ -197,12 +197,19 @@
     ,Catalog/OCProperties    = false
     ,named_actions    = {NextPage, PrevPage, FirstPage, LastPage}
     ,annot_flags      = {
-                          \bitset_set_true:Nn   \l_pdfannot_F_bitset {Print}
+                          \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}
+                          \pdfannot_dict_put:nnn {link/URI}{F}{ \bitset_to_arabic:N \l_pdfannot_F_bitset }
+                          \pdfannot_dict_put:nnn {link/GoTo}{F}{ \bitset_to_arabic:N \l_pdfannot_F_bitset }
+                          \pdfannot_dict_put:nnn {link/GoToR}{F}{ \bitset_to_arabic:N \l_pdfannot_F_bitset }
+                          \pdfannot_dict_put:nnn {link/Launch}{F}{ \bitset_to_arabic:N \l_pdfannot_F_bitset }
+                          \pdfannot_dict_put:nnn {link/Named}{F}{ \bitset_to_arabic:N \l_pdfannot_F_bitset }
                         }
-    ,annot_actions   =  {GoTo, GoToR,Thread,URI,Named,SubmitForm}
+    ,annot_actions   =  {GoTo, GoToR,Thread,URI,Named,SubmitForm} %or not Launch, Sound, Movie, ResetForm, ImportData and JavaScript, Hide
+    ,annot_widget_AA =  false %no /AA dictionary in widget dict. Subtype != "Widget" || AA_size == 0
+    ,form_NeedAppearances = false
     % to be continued https://docs.verapdf.org/validation/pdfa-part1/
     % - Outputintent/colorprofiles requirements
     % - no Alternates key in image dictionaries





More information about the latex3-commits mailing list.