Closed liudongmiao closed 6 months ago
This is a documented issue/feature. pdfauthor
and pdftitle
need to be set explicitly in \hypersetup
. See hyperref-doc.pdf
section 5:
Be aware that some of the options do nothing or have changed behaviour if the new pdfmanagement and so the new generic hyperref driver is used.
and hyperref-generic.pdf
section 3:
...the driver will • Not try deduce author and title from documents. They have to be set in
\hypersetup
withpdfauthor
andpdftitle
.
Sorry I missed or forgot that issue. As @jpcirrus wrote, it is by design. The generic driver avoids to patch the \title command. Instead we plan to redefine the \title command in the kernel so that the PDF management can set the pdftitle with and without hyperref. This will probably happen with the next LaTeX release.
There is not
pdftitle
norpdfauthor
in genreated pdf. If we removeDocumentMetadata
, it works.It seems custom driver doesn't set
pdftitle
andpdfauthor
like other driver call\Hy@UseMaketitleInfos
.