A client was worried about an erroneous metadata – the title – that was showing up in one of his downloadable PDF files. As I didn’t have the original document file, I found it senseless to recreate a doc file and embed the correct metadata then export to PDF again. It’s just too tedious. I needed a quicker solution.
A quick Google search revealed this solution: Exiftool. A Linux command-line metadata editor that was exactly what I was looking for.
To install:
$ sudo apt-get install libimage-exiftool-perl
Here’s a usage example:
exiftool -Title="This is the Title" -Author="Happy Man" -Subject="PDF Metadata" drawing.pdf
from askubuntu.com.
Sources:
http://askubuntu.com/questions/27381/how-to-edit-pdf-metadata-from-command-line
http://brunogirin.blogspot.com/2009/05/exiftool-on-ubuntu.html