i noticed that i am not able to add metadata to my pdf.. any clues? Here is a minimal working example. The produced pdf has no author or title metadata. I am using miktex and texworks.

% !TeX program = xelatex
\documentclass[a4paper,10pt,draft]{report}

\usepackage[xetex]{hyperref}
%Provides some compatiblity with latex and
%Loads the fixltx2e, metalogo, xunicode, fontspec packages
\usepackage{xltxtra}
\usepackage{xgreek} %Set greek hypenation and support in general

\usepackage{graphicx} %Extends the \includegraphics command
\usepackage{amsmath}  %Improoved math support e.g scalable brackets
\usepackage{array}  %Extends the array command
\usepackage{subfigure}
\usepackage{rotating}
\usepackage{alltt}
\usepackage{float}
\usepackage{multirow}
\usepackage{pdfpages}
\usepackage{listings}
\usepackage{unicode-math}
\usepackage{tikz} %pgf-tikz pakcage

\usetikzlibrary{intersections}
\usetikzlibrary{calc}
\usetikzlibrary{through}

\setmainfont{XITS}
\setmathfont{XITS Math}

\hypersetup{
pdfauthor=Name,
pdftitle={Title}
}

\begin{document}
Hello world
\end{document}

-

## closed as too localized by Mico, yo', egreg, Marco Daniel, percusseJul 18 '12 at 10:23

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

You should still load hyperref later on in the preamble. It is usually one of the last packages you load, if not the last one. –  jon Jul 10 '12 at 0:55
@jon care to explain why? Don't get me wrong, i just want to learn. –  msmechanized Jul 10 '12 at 8:44
@msmechanized load hyperref last because hyperref patches all sorts of things; for example, subfigure defines new sorts of caption, but doesn't make them hyperref-aware if that might be needed. (note, this doesn't answer your original question...) –  wasteofspace Jul 10 '12 at 9:18
@msmechanized -- Sure; see here –  jon Jul 10 '12 at 9:42