2

I am using XeLaTeX and have found on this site to use the following (that works on XeLaTeX) for generating the very basic PDF metadata (title, subject, author, keywords, date):

\documentclass[10pt]{article}
\usepackage{hyperref}

\hypersetup{
  pdfinfo={
    Author={The Author},
    Creator={The Author},
    Title={The Title},
    Subject={The Subject},
    CreationDate={D:20040502195600},
    ModDate={D:20040502195600},
    Keywords={foo,bar},
    Producer={xelatex}
  }
}

\begin{document}
Hello
\end{document}

I read somewhere on the PDF specification which I can't seem to find right now, about the ability to specify custom metadata as long as it fits some standard/convention or something. So I'm wondering if there is a standard way to add the email and website to the metadata of the PDF (and any other potentially useful metadata one might like to add). In XeLaTeX.

1 Answer 1

3

You can just supply additional key-value pairs:

enter image description here

\documentclass{article}

\usepackage{hyperref}

\hypersetup{
  pdfinfo = {
    Author       = {The Author},
    Creator      = {The Author},
    Title        = {The Title},
    Subject      = {The Subject},
    CreationDate = {D:20040502195600},
    ModDate      = {D:20040502195600},
    Keywords     = {foo,bar},
    Producer     = {xelatex},
    Something    = {Something else},
    Another      = {Another key with a value}
  }
}

\begin{document}

Hello

\end{document}

However, visibility of these key-value pairs might be viewer-dependent; the above visual is within Adobe Reader under the Custom tab within the Document Properties (Ctrl-D). As mentioned in the dialog window:

You can add custom properties to this document. Each custom property requires a unique name, which must not be one of the standard property names Title, Author, Subject, Keywords, Creator, Producer, CreationDate, ModDate, and Tagged.

This is independent of the engine used.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .