ExifTool Forum

ExifTool => Newbies => Topic started by: Nichtraucher on December 17, 2015, 02:47:31 PM

Title: adding keywords to pdf files
Post by: Nichtraucher on December 17, 2015, 02:47:31 PM
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
Title: Re: adding keywords to pdf files
Post by: StarGeek on December 17, 2015, 06:57:29 PM
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.
Title: Re: adding keywords to pdf files
Post by: Nichtraucher on December 17, 2015, 08:01:50 PM
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.


:-/
Title: Re: adding keywords to pdf files
Post by: Phil Harvey on December 18, 2015, 08:32:13 AM
"PFD:Keywords" was a typo.  Try "PDF:Keywords".

- Phil
Title: Re: adding keywords to pdf files
Post by: Nichtraucher on December 18, 2015, 01:23:04 PM
That did it, thanks a lot! :-D