I want to create a pdf/a-compatible file in LaTeX using the pdfx package. Unfortunately, instead of using the correctly created xmp file to convert the file into pdf/a, some lines of cryptic text are written directly into the pdf file. My minimal example (largely based on http://www.golatex.de/pdfx-bzw-pdf-a-oder-pdf-x-t4427.html) is
\begin{filecontents*}{\jobname.xmpdata}
\Keywords{pdfTeX\sep PDF/X-1a\sep PDF/A-b}
\Title{Sample LaTeX input file}
\Author{Das war KOMA}
\Org{goLaTeX}
\end{filecontents*}
\documentclass{article}
\usepackage[a-1b]{pdfx}
\usepackage[pdfa]{hyperref}
\begin{document}
Hello world!
\end{document}
This produces the error ! LaTeX Error: Missing \begin{document}
, although I have a \begin{document}
in the file, and the following file:
Any ideas where the problem lies?