Skip to content

xmp-metadata are written too late #73

Description

@u-fischer

The xmp-data are now written in the enddocument hook. This is too late as l3pdfmeta writes the file in the shipout/lastpage hook which can be before the enddocument hook.

\RequirePackage{pdfmanagement}
\SetKeys[document/metadata]{lang=DE,pdfstandard=a-3b,uncompress}
\documentclass{article}
\usepackage[xrechnung]{zugferd}

\AddToHook{shipout/lastpage}{\typeout{shipout!!!!}}
\AddToHook{enddocument}{\typeout{end document!!!!}}

\NewDocumentEnvironment{letter}{}{}{} % works
% \RenewDocumentEnvironment{letter}{}{}{\newpage}  % fails, zugferd data are not written. 
\begin{document}
\begin{letter}
\begin{ZUGFeRD}
blub
\end{ZUGFeRD}
\end{letter}
\end{document}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions