After switching from Tex Live 2019 to 2021, pdfx
doesn't seem to work correctly.
MWE that works on 2019 but not on 2021:
\begin{filecontents*}{\jobname.xmpdata}
\Title{Some document}
\Author{Some author}
\end{filecontents*}
\documentclass{article}
\usepackage[a-1b]{pdfx}
\begin{document}
This document won't compile on \TeX{} Live 2021.
\end{document}
Tex Live 2021's pdflatex shows multiple repetitions of the following errors:
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.2855 \includexmp{\xmp@template}
%
?
In addition, some XMP tree is included as document text (in contrast to metadata as would have been expected).
To me, it seems that Tex Live 2021 has a regression (lualatex and xelatex seem to fail in a similar way). Tex Live 2021 was installed today and thus is fully up to date. Maybe I'm missing something here? Any help is appreciated.
pdflatex-dev
rather thanpdflatex