# pdfinfo doesn't appear to be working

I'm compiling my LaTeX using pdflatex and would like to have some pdfinfo integrated into the resulting file. Alas, this doesn't seem to be working, though I am using the same code which has worked in the past.

The header of my source is below:

\documentclass[twocolumn]{article}
\usepackage{tikz}
\usepackage[numbers]{natbib}
\newcommand{\final}{1}
\usepackage{fancyhdr}
\usepackage{abstract}

\title{Zombie Paranoia in the Bronx: A Study in Psychosocial Perceptions \\ Draft}

\author{{\bfseries John Smith$^a$} \\
{\footnotesize $^a$Ecology, Evolution, \& Behavior, University of Queens, USA \emph{smith@uoq.edu}}\\
}
\date{}

\pdfinfo
{ /Title (Zombie Paranoia in the Bronx: A Study in Psychosocial Perceptions)
/Author (John Smith)
%  /CreationDate (D:YYYYMMDDhhmmss) % this is the format used by pdf for date/time
%  /Subject (...)
%  /Keywords ()
}


Any thoughts?

This is caused by the hyperref package. It's not needed in your example, so you could just delete it. However, if your whole document does need hyperref, you can use \hypersetup to include the information.

\documentclass[twocolumn]{article}
\title{Zombie Paranoia in the Bronx: A Study in Psychosocial Perceptions \\ Draft}
\author{{\bfseries John Smith$^a$} \\
{\footnotesize $^a$Ecology, Evolution, \& Behavior, University of Queens, USA \emph{smith@uoq.edu}}\\
}
\date{}
\hypersetup{pdfinfo={
Title={Zombie Paranoia in the Bronx: A Study in Psychosocial Perceptions},
Author={John Smith}
}}
\begin{document}
abc
\end{document}


Have a look at section 3.7 of the hyperref package manual for more information.

• Your answer's just what I need, Ian, though I wish it had the full range of options shown in amorua's answer. Of course, there are a great many options and your link brings me to them. Thank you :-) – Richard Mar 15 '12 at 5:51
• Ran pdflatex with these contents, but OSX Preview 5.0.3 still shows just the document name as the sidebars top level TOC item. Isn't this exactly what pdfinfo Title should change? – Jukka Dahlbom Apr 3 '13 at 14:04

Indeed \pdfinfo does not work in combination with hyperref

Try the following

\hypersetup{pdfauthor={Author},%
pdfsubject={Whatever},%
pdfkeywords={one, two},%
pdfproducer={LaTeX},%
pdfcreator={pdfLaTeX}
}

• Your answer's to the point, amorua, but I wish you'd included the link that Ian did. – Richard Mar 15 '12 at 5:51

If I try typesetting your input and preview it with Skim, the Author and Title info are as you want, but not with Adobe Reader. If instead I write

\hypersetup{
pdfinfo={
Title={Zombie Paranoia in the Bronx: A Study in Psychosocial Perceptions},
Author={John Smith},
}
}