[latex3-commits] [latex3/pdfresources] develop: add Catalog_OCProperties_no_AS verify method (de46111)
github at latex-project.org
github at latex-project.org
Mon Sep 2 19:57:15 CEST 2024
Repository : https://github.com/latex3/pdfresources
On branch : develop
Link : https://github.com/latex3/pdfresources/commit/de461117bb22ec9c15aa974f3f9cfdac65b963be
>---------------------------------------------------------------
commit de461117bb22ec9c15aa974f3f9cfdac65b963be
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon Sep 2 19:57:03 2024 +0200
add Catalog_OCProperties_no_AS verify method
>---------------------------------------------------------------
de461117bb22ec9c15aa974f3f9cfdac65b963be
CHANGELOG.md | 3 +++
l3pdfmeta.dtx | 10 ++++++++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7c59a56..0e987d8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,9 @@ this project uses date-based 'snapshot' version identifiers.
## [Unreleased]
+### Added
+ - l3pdfmeta.dtx: add standard test `Catalog_no_OCProperties_AS`, (issue#77)
+
### Fixed
- l3pdfmeta.dtx: remove Catalog_no_OCProperties from pdf/a-2b onwards (issue#77)
diff --git a/l3pdfmeta.dtx b/l3pdfmeta.dtx
index 694fff0..42c409a 100644
--- a/l3pdfmeta.dtx
+++ b/l3pdfmeta.dtx
@@ -190,6 +190,8 @@
% a test for at least the PDF-format will be added in future.
% \item[|Catalog_no_OCProperties|] don't add |/OCProperties| to the catalog
% {\em l3pdfmeta removes this entry at the end of the document}
+% \item[|Catalog_OCProperties_no_AS|]
+% do not use |/AS| optional content configuration dictionary.
% \item[|Catalog_EmbeddedFiles|] ensure that an |EmbeddedFiles| name tree is
% in the catalog. This is required for PDF/A-4f.
% \item[|annot_widget_no_AA|] (rule 6.6.2-1)
@@ -887,7 +889,10 @@
%
%===============
% Rule 6.1.13-1 CosDocument, isOptionalContentPresent == false
- ,Catalog_no_OCProperties =
+ ,Catalog_no_OCProperties =
+ % Rule 6.9-4 The AS key shall not appear in any optional content configuration dictionary.
+ % actually only starting with A-2 but doesn't harm here either
+ ,Catalog_OCProperties_no_AS=
%===============
% Rule 6.6.1-1: PDAction, S == "GoTo" || S == "GoToR" || S == "Thread"
% || S == "URI" || S == "Named" || S == "SubmitForm"
@@ -1028,7 +1033,8 @@
{ g_@@_standard_pdf/A-4_prop }{conformance}
\prop_gremove:cn
{ g_@@_standard_pdf/A-4_prop }{max_pdf_version}
-
+\prop_gremove:cn
+ { g_@@_standard_pdf/A-4_prop }{Catalog_OCProperties_no_AS}
%A-4f ==============
\prop_new:c { g_@@_standard_pdf/A-4F_prop }
\prop_gset_eq:cc
More information about the latex3-commits
mailing list.