6

If you are hurrying to flag this question as a duplicate of this or this questions, please stop, the answers on those questions do not provide an answer to the question here.

After I asked this question I found that title and file name are pretty much different, so then I tried changing the pdf document's title to whatever I want to?.

I tried with Okular, but it doesn't let me change the title, I also tried GIMP but it just don't seem to have the option. I even tried verifying the document properties with Dolphin and it does not work either. How to change the title then?.

Hans
  • 1,251
  • 1
  • 19
  • 44
  • Related: http://askubuntu.com/q/401114/81372. Also, make sure to check out [PDFMtEd](https://github.com/Glutanimate/PDFMtEd) for a GUI solution to editing PDF metadata. – Glutanimate Mar 01 '15 at 06:18

1 Answers1

10

Solution:

After a deep web search using Google, I found a tool called pdftk (Title in the manual: pdftk - A handy tool for manipulating PDF). To install the pdftk use the below line on the command line;

 sudo apt-get install pdftk

then created a file named updateTitle.txt containing the following information:

InfoKey: Title
InfoValue: New Title

And saved it in the same location the PDF is, then I ran in a terminal (in the PDF’s location):

pdftk input.pdf update_info updateTitle.txt output output.pdf

The PDF’s title is now "New Title".

kelalaka
  • 461
  • 1
  • 6
  • 19
Hans
  • 1,251
  • 1
  • 19
  • 44