update since pdfx and hyperxmp are not compatible
I try to use lualatex to generate PDF/A-1b compatible files without creating and xmp file. My attempt does not work.
The pdf is generated but adobe reader does not show that the meta data was set.
MWE:
\documentclass{article}
\usepackage{luatexbase}
%%%%%%%%%%%% PDF and PDF/A
\usepackage[a-1b]{pdfx}
\hypersetup{%
breaklinks=true,
hyperindex=true,
colorlinks=false,
hidelinks=true,
unicode=true,
pdfauthor={Author},
pdfauthor={Author},
pdfsubject={The Subject},
pdfkeywords={Some Keywords},
pdflang={en},
bookmarksopen=false,
linktocpage=true,
plainpages=false,
breaklinks,
pdfpagelabels
}
\begin{document}
\tableofcontents
\section{gg}
gg
\end{document}
hyperxmp
does it by default, see my example in the answer.