[latex3-commits] [git/LaTeX3-latex3-pdfresources] develop: pass title and subject through pdfstringdef in hyperxmp patches (2823b19)
Ulrike Fischer
fischer at troubleshooting-tex.de
Wed Mar 31 14:37:37 CEST 2021
Repository : https://github.com/latex3/pdfresources
On branch : develop
Link : https://github.com/latex3/pdfresources/commit/2823b190b9638e138102b93ff210f25f08c8bd72
>---------------------------------------------------------------
commit 2823b190b9638e138102b93ff210f25f08c8bd72
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Wed Mar 31 14:37:37 2021 +0200
pass title and subject through pdfstringdef in hyperxmp patches
>---------------------------------------------------------------
2823b190b9638e138102b93ff210f25f08c8bd72
firstaid/hyperxmp-patches-tmp-ltx.sty | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/firstaid/hyperxmp-patches-tmp-ltx.sty b/firstaid/hyperxmp-patches-tmp-ltx.sty
index 803956f..bfaace3 100644
--- a/firstaid/hyperxmp-patches-tmp-ltx.sty
+++ b/firstaid/hyperxmp-patches-tmp-ltx.sty
@@ -103,8 +103,8 @@
,pdfcontacturl
,pdfdate
%hyperref, needs probably special handling
- ,pdftitle
- ,pdfsubject
+ % ,pdftitle %see below
+ % ,pdfsubject %see below
,pdfkeywords
,pdfproducer
}
@@ -118,7 +118,12 @@
\exp_args:NNe
\pdfstringdef\@pdfauthor{\GetDocumentProperties{hyperref/pdfauthor}}
\cs_set_eq:NN\hyxmp at pdfauthor\@pdfauthor
-
+ \exp_args:NNe
+ \pdfstringdef\@pdfauthor{\GetDocumentProperties{hyperref/pdfsubject}}
+ \cs_set_eq:NN\hyxmp at pdfsubject\@pdfsubject
+ \exp_args:NNe
+ \pdfstringdef\@pdftitle{\GetDocumentProperties{hyperref/pdftitle}}
+ \cs_set_eq:NN\hyxmp at pdftitle\@pdftitle
% pdflang,
\tl_if_exist:cF{@pdflang}{\tl_new:c{@pdflang}}
\tl_set:cx {@pdflang}{\GetDocumentProperties{document/lang}}
More information about the latex3-commits
mailing list.