Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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):

\pdfinfo
{ /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
add comment

1 Answer

up vote 12 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},
            pdfcreator={Xelatex}]{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
1  
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
add comment

Your Answer

 
discard

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.