[latex3-commits] [git/LaTeX3-latex3-pdfresources] reworking-annot: improve standard handling (398cf81)

Ulrike Fischer fischer at troubleshooting-tex.de
Mon Jan 4 19:34:26 CET 2021


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

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

commit 398cf81eb8df40c008c3f64d965d08cfed5432ba
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Jan 4 19:34:26 2021 +0100

    improve standard handling


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

398cf81eb8df40c008c3f64d965d08cfed5432ba
 l3pdfmeta.dtx | 24 +++++++++++++++++++++---
 ltdocinit.dtx |  7 ++++++-
 2 files changed, 27 insertions(+), 4 deletions(-)

diff --git a/l3pdfmeta.dtx b/l3pdfmeta.dtx
index 2e66455..a3ba9fb 100644
--- a/l3pdfmeta.dtx
+++ b/l3pdfmeta.dtx
@@ -81,7 +81,7 @@
 %<*package>
 %<@@=pdfmeta>
 \ProvidesExplPackage {l3pdfmeta} {2020-05-17} {0.2}
-  {XMP-Metadata}
+  {XMP-Metadata and PDF-Standards}
 %    \end{macrocode}
 %    \begin{macrocode}
 \msg_new:nnn  {pdf }{unknown-standard}{The~standard~'#1'~is~unknown~and~has~been~ignored}
@@ -139,7 +139,7 @@
   }
 %    \end{macrocode}
 %
-% \section{standards (work in progress)}
+% \section{Standards (work in progress)}
 % \subsection{Tools and tests}
 % This public property will contain the settings for the document.
 % \begin{variable}{\g_pdfmeta_standard_prop}
@@ -192,7 +192,7 @@
     ,max_string_size  = 65535
     ,max_array_size   = 8191
     ,max_dict_size    = 4095
-    ,max_obj_num      =  8388607
+    ,max_obj_num      = 8388607
     ,max_nest_qQ      = 28
     ,Catalog/OCProperties    = false
     ,named_actions    = {NextPage, PrevPage, FirstPage, LastPage}
@@ -202,19 +202,36 @@
                           \bitset_set_false:Nn \l_pdfannot_F_bitset {Invisible}
                           \bitset_set_false:Nn \l_pdfannot_F_bitset {NoView}
                         }
+    ,annot_actions   =  {GoTo, GoToR,Thread,URI,Named,SubmitForm}
     % to be continued https://docs.verapdf.org/validation/pdfa-part1/
+    % - Outputintent/colorprofiles requirements
+    % - no Alternates key in image dictionaries
+    % - no OPI, Ref, Subtype2 with PS key in xobjects
+    % - Interpolate  = false in images
+    % - no TR, TR2 in ExtGstate
   }
 
+%A-2b ==============
 \prop_new:c { g_pdfmeta_standard_pdf/A-2b_prop }
 \prop_gset_eq:cc
   { g_pdfmeta_standard_pdf/A-2b_prop }
   { g_pdfmeta_standard_pdf/A-1b_prop }
 
+% embedding files is allowed (with restrictions)
+\prop_gremove:cn
+  { g_pdfmeta_standard_pdf/A-2b_prop }
+  { embed_content}
+
+%A-3b ==============
 \prop_new:c { g_pdfmeta_standard_pdf/A-3b_prop }
 \prop_gset_eq:cc
   { g_pdfmeta_standard_pdf/A-3b_prop }
   { g_pdfmeta_standard_pdf/A-2b_prop }
 
+% embedding files is allowed (with restrictions)
+\prop_gremove:cn
+  { g_pdfmeta_standard_pdf/A-3b_prop }
+  { embed_content}
 
 %   ["pdf/a-1b:2005"] = {
 %            pdf_version             = 1.4,
@@ -238,6 +255,7 @@
 %        },
 %    \end{macrocode}
 % \end{variable}
+%
 %    \begin{macrocode}
 %</package>
 %    \end{macrocode}
diff --git a/ltdocinit.dtx b/ltdocinit.dtx
index a0afee0..6e344cd 100644
--- a/ltdocinit.dtx
+++ b/ltdocinit.dtx
@@ -139,6 +139,7 @@
     backend .groups:n = { init } ,
   }
 
+%perhaps it should be a seq?
 \keys_define:nn { pdf / setup }
   {
     ,pdfversion .code:n =
@@ -157,7 +158,11 @@
     ,standard .choices:nn =
       {A-1b,A-2b,A-3b}
       {
-        \prop_gset_eq:Nc \g_pdfmeta_standard_prop { g_@@_meta_standard_pdf/#1_prop }
+        \prop_if_exist:cT { g_pdfmeta_standard_pdf/#1_prop }
+          {
+            \prop_gset_eq:Nc \g_pdfmeta_standard_prop { g_pdfmeta_standard_pdf/#1 _prop }
+          }
+
       }
     ,standard / unknown .code:n =
       {





More information about the latex3-commits mailing list.