I've been trying to change the dc:date metadata of a moderncv .pdf file without success.
Doesn't work with lualatex nor pdflatex. The resulting PDF always has the real creation date as dc:date.
\pdfcreationdate
, \pdfmoddate
, \pdfmetadate
do work.
\pdfdate
works with other document classes such as KOMA-script and the base classes.
Do you know of any reason or fix for this? Thanks.
Minimal working example:
% !TeX program = lualatex
\documentclass[11pt,a4paper]{moderncv}
\moderncvstyle[left]{classic}
\usepackage{hyperxmp}
\AfterPreamble{
\hypersetup{
pdfencoding=auto,
pdfcreationdate={2014-09-23T14:15:09-06:00},
pdfmoddate={2014-09-23T14:15:09-06:00},
pdfmetadate={2014-09-23T14:15:09-06:00},
pdfdate={2014-09-23T14:15:09-06:00},
}
}
\name{John}{Doe}
\begin{document}
\makecvtitle
\section{Section}
\cvitemwithcomment{Item}{Commment}{}
\end{document}
\RequirePackage{hyperxmp}
before\documentclass
.\AfterPreamble
is too late, try\AtEndPreamble
.