\DocumentMetadata{
  lang        = de,
  pdfversion  = 2.0,
  pdfstandard = ua-2,
  pdfstandard = a-4f, %or a-4
  testphase   = {phase-III}
}

\documentclass{article}

\usepackage{hyperref}

\hypersetup{
pdftitle={test title},
pdfauthor={author},
pdfsubject={test subject},
pdfkeywords={test keywords}
}

\begin{document}
\section{test section}
test text in section

\end{document}
