How to put PDF properties in a LaTeX file

My previous post described how to put links in a PDF file generated from LaTeX. The hyperref package that lets you include links also lets you to set PDF document properties. I’ve been using Adobe Acrobat to do this after creating my PDF file with pdflatex, but that’s unnecessary. Here’s how to put the PDF properties directly in the LaTeX file. Add something like this

    pdfauthor={John Hancock},
    pdfsubject={Some subject},
    pdftitle={Sample document},
    pdfkeywords={LaTeX, PDF, hyperlinks}

after the \usepackage{hyperref} instruction at the top of your file.

Tagged with: ,
Posted in Uncategorized
6 comments on “How to put PDF properties in a LaTeX file
  1. Andreas says:

    Cheers! Just what I was searching for=)

  2. John says:

    See additional notes on hyperref in answer to a StackOverflow question.

  3. Rafael says:

    Great tip. Thanks

  4. Jeremy says:

    How can I use the author and title definitions from the author{…} and title{…} commands? This would make my life easier.

  5. cevin says:


    You can use own defined variables

    newcommand{ownauthor}{the author}

    And everytime you call own author you get the set Author name in the new command command.

  6. Giacomo says:

    Thank you! Exactly what I was searching for :)
    Greetings from italy ;)

2 Pings/Trackbacks for "How to put PDF properties in a LaTeX file"
  1. [...] This post was mentioned on Twitter by Reinaldo Astudillo, TeX tips. TeX tips said: How to put PDF properties in a LaTeX file [...]

  2. [...] post é uma tradução do original de John D. Cook, publicado em The [...]