[latex3-commits] [git/LaTeX3-latex3-pdfresources] testA4: pdf A4, WIP (0b9125e)

Ulrike Fischer fischer at troubleshooting-tex.de
Thu Apr 14 16:37:35 CEST 2022


Repository : https://github.com/latex3/pdfresources
On branch  : testA4
Link       : https://github.com/latex3/pdfresources/commit/0b9125e0c5a0f178cc6a82779f13bc063cc4da26

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

commit 0b9125e0c5a0f178cc6a82779f13bc063cc4da26
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu Apr 14 16:37:35 2022 +0200

    pdf A4, WIP


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

0b9125e0c5a0f178cc6a82779f13bc063cc4da26
 l3pdfmeta.dtx | 25 ++++++++++++++++++++++++-
 ltdocinit.dtx |  2 +-
 2 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/l3pdfmeta.dtx b/l3pdfmeta.dtx
index 35e9a3b..e47319e 100644
--- a/l3pdfmeta.dtx
+++ b/l3pdfmeta.dtx
@@ -515,9 +515,13 @@
   {
     \pdfmeta_standard_verify:nF { annot_flags }
      { \@@_verify_pdfa_annot_flags: }
+    \pdfmeta_standard_verify:nnF { min_pdf_version }
+     { \pdf_version: }
+     { \typeout{Wrong Version!!} }
   }
 %    \end{macrocode}
 %
+%
 %  \subsubsection{pdf/A}
 %  We use global properties so that follow up standards can be
 %  copied and then adjusted.
@@ -531,6 +535,7 @@
 %   \g_@@_standard_pdf/A-3A_prop ,
 %   \g_@@_standard_pdf/A-3B_prop ,
 %   \g_@@_standard_pdf/A-3U_prop ,
+%   \g_@@_standard_pdf/A-4_prop ,
 %   }
 %     \begin{macrocode}
 \prop_new:c { g_@@_standard_pdf/A-1B_prop }
@@ -542,6 +547,7 @@
     ,conformance      = B
     ,year             = 2005
     ,min_pdf_version  = 1.4        %minimum
+    ,max_pdf_version  = 1.4        %minimum
     ,no_encryption    =
     ,no_external_content =  % no F, FFilter, or FDecodeParms in stream dicts
     ,no_embed_content = % no EF key in filespec, no /Type/EmbeddedFiles
@@ -605,7 +611,8 @@
 \prop_gremove:cn
   { g_@@_standard_pdf/A-2B_prop }
   { embed_content}
-
+\prop_gput:cnn
+  { g_@@_standard_pdf/A-2B_prop }{max_pdf_version}{1.7}
 %A-2u ==============
 \prop_new:c { g_@@_standard_pdf/A-2U_prop }
 \prop_gset_eq:cc
@@ -669,6 +676,22 @@
   { g_@@_standard_pdf/A-3A_prop }{conformance}{A}
 \prop_gput:cnn
   { g_@@_standard_pdf/A-3A_prop }{tagged}{}
+
+%A-4 ==============
+\prop_new:c { g_@@_standard_pdf/A-4_prop }
+\prop_gset_eq:cc
+  { g_@@_standard_pdf/A-4_prop }
+  { g_@@_standard_pdf/A-3U_prop }
+\prop_gput:cnn
+  { g_@@_standard_pdf/A-4_prop }{name}{pdf/A-4}
+\prop_gput:cnn
+  { g_@@_standard_pdf/A-4_prop }{min_pdf_version}{2.0}
+\prop_gput:cnn
+  { g_@@_standard_pdf/A-4_prop }{year}{2020}
+\prop_gremove:cn
+  { g_@@_standard_pdf/A-4_prop }{conformance}
+\prop_gremove:cn
+  { g_@@_standard_pdf/A-4_prop }{max_pdf_version}
 %    \end{macrocode}
 % \end{variable}
 %
diff --git a/ltdocinit.dtx b/ltdocinit.dtx
index fe104fd..948ad26 100644
--- a/ltdocinit.dtx
+++ b/ltdocinit.dtx
@@ -278,7 +278,7 @@
             \keys_set:nn {document / metadata} {_pdfstandard=\str_uppercase:n{#1}}
           }
         ,_pdfstandard .choices:nn =
-          {A-1B,A-2A,A-2B,A-2U,A-3A,A-3B,A-3U}
+          {A-1B,A-2A,A-2B,A-2U,A-3A,A-3B,A-3U,A-4}
           {
             \prop_if_exist:cT { g__pdfmeta_standard_pdf/#1_prop }
               {





More information about the latex3-commits mailing list.