I have following document that sets up PDF metadata using \hypersetup:
\documentclass[11pt]{book}
\usepackage{hyperref}
\hypersetup{pdfproducer={My producer},%
pdfauthor={My author},%
pdftitle={My title},%
pdfcreator={My creator}
}
\begin{document}
Contents of the document
\end{document}
When this document is compiled with pdflatex all 4 fields of PDF metadata are created as specified.
However when document is compiled with xelatex, "Creator" value is set to xdvipdfmx (0.7.9).
To change it, I use pdftk to dump metadata to a file, change it and then update PDF file with new metadata.
However, I am wondering if there is any way to set this "Creator" metadata directly in document, so that it is included in metadata of PDF generated with xelatex.