TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to specify the metadata in PDF's made with XeTeX?

Here's an example of the type of metadata I'd like to set (and a speculative form for XeTeX):

{ /Title (My Masterpiece)
  /Author (YourName)
  /CreationDate (D:YYYYMMDDhhmmss) % this is the format used by pdf for date/time
  /Subject (...)
  /Keywords (...)

While it's clearly possible to do precisely this with pdfTeX, the following link suggests it's not possible with XeTeX: pdfauthor, pdftitle etc. in XeTeX.

I'd be grateful for thoughts and feedback.

share|improve this question
up vote 15 down vote accepted

The link you gave has an answer, which is to use hyperref package:

\usepackage[pdfauthor={Your Name},
            pdftitle={The Title},
            pdfsubject={The Subject},
            pdfkeywords={Some Keywords},
            pdfproducer={XeLateX with hyperref},

Works with XeLaTeX anyway.

(One of those links you gave is very old: it is now possible to use \hypersetup too.)

share|improve this answer
though you can't change the pdfproducer tag with hyperref – henrique Jun 8 '11 at 14:28
You should be also able to set these values using \hypersetup{..} in the same way. This has the benefit that they don't get passed through LaTeX package option routine which can cause trouble with complex values. – Martin Scharrer Jul 16 '11 at 22:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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