adding keywords to pdf files

Started by Nichtraucher, December 17, 2015, 02:47:31 PM

Previous topic - Next topic

Nichtraucher

Hello,I'm new here :-)


I'm trying hard to easily add keywords to pdf files in batches and somehow stumbled across exiftool.

I used this sample command that I found on a Ubuntu support site:

exiftool -mwg:keywords+="keyword" *.pdf

This returned:
4 image files updated

The added keyword doesn't show up when I open it in the viewer.

Did I miss anything?

cheers

StarGeek

mwg:keywords updates IPTC:keywords and XMP:subject.  A quick look at various pdfs I had on hand seems to indicate you might want to try PFD:Keywords or XMP-pdf:keywords.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Nichtraucher

#2
Many thanks for your help!

Ok, I tried

exiftool -PFD:keywords+="keyword" *.pdf
and got in return:
Warning: Tag 'PFD:Keywords' does not exist
Nothing to do.


and
exiftool -XMP-pdf:keywords+="Keyword" *.pdf

led to:
Warning: Can't add XMP-pdf:Keywords (not a List type)
Nothing to do.


:-/

Phil Harvey

"PFD:Keywords" was a typo.  Try "PDF:Keywords".

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Nichtraucher