I am using pdfinfo to display the title name and author of pdf files. But for some pdf files, it's not working. It's showing all other info like creation date,modification date,pagesize etc except title of the paper and authors name. Is there any alternative way to retrieve these info? I have used:

pdfinfo filename
  • 1
    Are you sure the other PDFs do have a tilte/author at all? Sep 13, 2015 at 11:22
  • when i read them, the title is at the top, and below it, the author names are written @Thomas Erker
    – Black
    Sep 13, 2015 at 11:37
  • 1
    @Black That doesn't mean that the title and author are indicated as title and author in the PDF metadata. If they aren't, then that's just line 1 and line 2 as far as pdfinfo is concerned. Sep 13, 2015 at 21:38

1 Answer 1


For pdfinfo to display the title, it must be specified in the metadata field title. The title that it displays it's not the pdf "physical" filename if that is what you're trying to get.

Use a graphic explorer to view the file properties and in the metadata tab make sure you have a title. In the image bellow you can see that they can have different values

enter image description here

Edit: For an alternative to pdfinfo you can use exiftool to read/write files metadata. For example to get title and author you could do this:

exiftool -Title -Author input.pdf
  • 1
    Suppose, I have a research paper which is in pdf format named paper.pdf but the actual title of the paper is " Future aspects of Science" which is written on the top of the paper when I open it and the writer's name is/are also written below the title (say: Mr. A and Mr. B).So, I want to retrieve these info: Title: Future aspects of Science Author: Mr. A and Mr. B Is there any way of doing this? @Pedro Mendes
    – Black
    Sep 13, 2015 at 12:40
  • @Black Use pdftotext or some such and extract the first and second line (perhaps after skipping headers, and perhaps coping with multi-line titles and authors, etc). Sep 13, 2015 at 21:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .