14

Today I opened a PDF document with Acrobat Reader DC and noticed that it showed the document title (not the filename) in the tab and title bar (which I like). Apparently, it is a property of the PDF file whether the reader (at least Acrobat Reader) should show the document title or filename; Acrobat Reader DC Pro can be used to change which one to show (see this link from the adobe forums).

When using pdfLaTeX with hyperref to produce a PDF with a document title (like in the example beneath), it shows the filename in Acrobat Reader. Is there a way to change this so it shows the document title?

\documentclass{article}

\usepackage[pdftitle=Title,pdfauthor=Me]{hyperref}

\begin{document}
The filename is shown.
\end{document}
15
\documentclass{article}

\usepackage[pdftitle=Title,pdfauthor=Me,pdfdisplaydoctitle]{hyperref}

\begin{document}
The title is shown.
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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