[latex3-commits] [git/LaTeX3-latex3-pdfresources] develop: correct pdf-a4 metadata (1a71a13)
Ulrike Fischer
fischer at troubleshooting-tex.de
Fri Nov 18 23:30:52 CET 2022
Repository : https://github.com/latex3/pdfresources
On branch : develop
Link : https://github.com/latex3/pdfresources/commit/1a71a130bb199378979a1dbcb0be1f635eb3f960
>---------------------------------------------------------------
commit 1a71a130bb199378979a1dbcb0be1f635eb3f960
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Fri Nov 18 23:30:52 2022 +0100
correct pdf-a4 metadata
>---------------------------------------------------------------
1a71a130bb199378979a1dbcb0be1f635eb3f960
CHANGELOG.md | 5 +++++
l3pdfmeta.dtx | 4 +++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index dd6e4dd..7648b07 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,11 @@ first release 0.95a, 2021-02-23 will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
this project uses date-based 'snapshot' version identifiers.
+## [Unreleased]
+
+### Fixed
+ - pdf A4 uses pdfaid:rev not pdfaid:year.
+
## [2022-11-03]
### Added
diff --git a/l3pdfmeta.dtx b/l3pdfmeta.dtx
index 32cfb03..454d336 100644
--- a/l3pdfmeta.dtx
+++ b/l3pdfmeta.dtx
@@ -2192,7 +2192,9 @@
\@@_xmp_add_packet_line:nne {pdfaid}{part}{\pdfmeta_standard_item:n{level}}
\@@_xmp_add_packet_line:nne
{pdfaid}{conformance}{\pdfmeta_standard_item:n{conformance}}
- \@@_xmp_add_packet_line:nne {pdfaid}{year} {\pdfmeta_standard_item:n{year}}
+ \int_compare:nNnTF {\pdfmeta_standard_item:n{level}}<{4}
+ {\@@_xmp_add_packet_line:nne {pdfaid}{year} {\pdfmeta_standard_item:n{year}}}
+ {\@@_xmp_add_packet_line:nne {pdfaid}{rev} {\pdfmeta_standard_item:n{year}}}
\@@_xmp_add_packet_line:nne
{pdfxid}{GTS_PDFXVersion}{\GetDocumentProperties{document/pdfstandard-X}}
\@@_xmp_add_packet_line:nne
More information about the latex3-commits
mailing list.