From 9a95a8e746f2afb7015aea9f8df962351f758670 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 2 Nov 2020 21:55:35 +0000 Subject: hyperxmp (2nov20) git-svn-id: svn://tug.org/texlive/trunk@56839 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist/tex/latex/hyperxmp') diff --git a/Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty b/Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty index 0bec03894dd..46cc9c97564 100644 --- a/Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty +++ b/Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty @@ -22,7 +22,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{hyperxmp} - [2020/10/05 v5.6 Store hyperref metadata in XMP format] + [2020/11/01 v5.7 Store hyperref metadata in XMP format] \edef\hyxmp@dq@code{\the\catcode`\"} \catcode`\"=12 \@ifundefined{AtEndDocument}{% @@ -513,10 +513,6 @@ if nbytes then end }% }% -\else - \ifPDFTeX - \edef\hyxmp@prev@pdf@size{\pdffilesize{\hyxmp@jobname.pdf}}% - \fi \fi \newcommand*{\hyxmp@query@self}{% \ifLuaTeX @@ -1459,9 +1455,14 @@ ______^^J% \hyxmp@add@simple{xmpRights:WebStatement}{\@pdflicenseurl}% \fi } +\expandafter\hyxmp@aep@toks\expandafter=\expandafter{% + \the\hyxmp@aep@toks + \AtEndPreamble{% + \@ifmtargexp{\hyxmp@DocumentID}{\hyxmp@def@DocumentID}{}% + \@ifmtargexp{\hyxmp@InstanceID}{\hyxmp@def@InstanceID}{}% + }% +} \gdef\hyxmp@mm@schema{% - \@ifmtargexp{\hyxmp@DocumentID}{\hyxmp@def@DocumentID}{}% - \@ifmtargexp{\hyxmp@InstanceID}{\hyxmp@def@InstanceID}{}% \hyxmp@add@simple{xmpMM:DocumentID}{\hyxmp@DocumentID}% \hyxmp@add@simple{xmpMM:InstanceID}{\hyxmp@InstanceID}% \hyxmp@add@simple{xmpMM:VersionID}{\@pdfversionid}% -- cgit v1.2.3