[latex3-commits] [git/LaTeX3-latex3-pdfresources] testxmp: adapt regression code to new xmp data (3cf4e7b)
Ulrike Fischer
fischer at troubleshooting-tex.de
Fri Sep 9 11:46:56 CEST 2022
Repository : https://github.com/latex3/pdfresources
On branch : testxmp
Link : https://github.com/latex3/pdfresources/commit/3cf4e7bd9f8e91f3a7dfce7d67a3c6b773ba03f0
>---------------------------------------------------------------
commit 3cf4e7bd9f8e91f3a7dfce7d67a3c6b773ba03f0
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Fri Sep 9 11:46:56 2022 +0200
adapt regression code to new xmp data
>---------------------------------------------------------------
3cf4e7bd9f8e91f3a7dfce7d67a3c6b773ba03f0
hyperref-generic.dtx | 1 +
l3backend-testphase.dtx | 2 ++
l3pdfmeta.dtx | 4 ++--
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/hyperref-generic.dtx b/hyperref-generic.dtx
index 347ca77..91a42bd 100644
--- a/hyperref-generic.dtx
+++ b/hyperref-generic.dtx
@@ -3943,6 +3943,7 @@
\pdfmanagement_add:nnx {Info}{#2}{(##1)}
}
\@@_store_metadata:nn {pdf#1}{##1}
+ \AddToDocumentProperties[document]{#1}{#2}
}
}
\keys_define:nn { hyp / info }
diff --git a/l3backend-testphase.dtx b/l3backend-testphase.dtx
index 4ad10fc..4381337 100644
--- a/l3backend-testphase.dtx
+++ b/l3backend-testphase.dtx
@@ -2001,6 +2001,8 @@
%<*drivers>
\pdfmanagement_add:nnn{Info}{CreationDate}{(D:20010101205959-00'00')}
\pdfmanagement_add:nnn{Info}{ModDate}{(D:20010101205959-00'00')}
+ \AddToDocumentProperties[document]{pdfcreationdate}{D:20010101205959-00'00'}
+ \AddToDocumentProperties[document]{pdfmoddate}{D:20010101205959-00'00'}
}
%</drivers>
% \end{macrocode}
diff --git a/l3pdfmeta.dtx b/l3pdfmeta.dtx
index 07f4704..8c7b5d7 100644
--- a/l3pdfmeta.dtx
+++ b/l3pdfmeta.dtx
@@ -2069,14 +2069,14 @@
% CreationDate
% \begin{macrocode}
\@@_xmp_date_get:nNN
- {hyperref/pdfcreationdate}\l_@@_tmpa_tl\l_@@_tmpa_seq
+ {document/pdfcreationdate}\l_@@_tmpa_tl\l_@@_tmpa_seq
\@@_xmp_add_packet_line:nne{xmp}{CreateDate}{\@@_xmp_print_date:N\l_@@_tmpa_seq}
\pdfmanagement_add:nnx{Info}{CreationDate}{(\l_@@_tmpa_tl)}
% \end{macrocode}
% ModifyDate
% \begin{macrocode}
\@@_xmp_date_get:nNN
- {hyperref/pdfmoddate}\l_@@_tmpa_tl\l_@@_tmpa_seq
+ {document/pdfmoddate}\l_@@_tmpa_tl\l_@@_tmpa_seq
\@@_xmp_add_packet_line:nne{xmp}{ModifyDate}{\@@_xmp_print_date:N\l_@@_tmpa_seq}
\pdfmanagement_add:nnx{Info}{ModDate}{(\l_@@_tmpa_tl)}
% \end{macrocode}
More information about the latex3-commits
mailing list.