1

I recently learned of the disconnect between pdfx and hyperxmp, and have tried to transfer my document entirely over to the latter. Everything seems to be working quite well, except that the key pdfauthor is appearing only the XMP data; no /Author field is created. MWE:

\documentclass{article}
\usepackage[pdfa]{hyperref}
\usepackage{hyperxmp}
\hypersetup{%
    pdftitle={The TITLE},%
    pdfauthor={The AUTHOR},%
}
\begin{document}
Hello
\end{document}

The argument to pdfauthor appears in the dc:creator portion of the XMP data, which seems correct; but is there a way to coerce hyperxmp to create an /Author entry, as well, or to create one separately?

1 Answer 1

3

This is documentated on page 14 of the hyperxmp documentation. You need the key keeppdfinfo.

\documentclass{article}
\usepackage[pdfa]{hyperref}
\usepackage{hyperxmp}
\hypersetup{%
    keeppdfinfo,
    pdftitle={The TITLE},%
    pdfauthor={The AUTHOR},%
}
\begin{document}
Hello
\end{document}
1
  • Perfect. I didn't make the connection between the /Author entry and the /Info dictionary the documentation spoke about. Thanks! Jan 23, 2021 at 14:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.