pdf meta data "keywords" gets appended text of "subject" in acrobat reader

Started by jacky, October 05, 2021, 10:47:59 AM

Previous topic - Next topic

jacky

Hey,

there's an annoying bug when writing subject and keywords metadata of a pdf file in windows 10 with latest 12.32. For example:
exiftool.exe -L -overwrite_original -charset filename=cp1252 "-FileCreateDate<filename" "-FileModifyDate<filename" "-Alldates<filename" "-Title=text1" "-Subject=text2" "-Keywords=text3" "-filename=f1.pdf" "file2.pdf"

In foxit reader 11 all seems to be okay:




But in latest Acrobat Reader the word of subject is appended to keywords meta tag after automatically set semicolon:



Is it possible that any line ending between the meta tags isn't set correct?
Writing keywords with e.g. ocrmypdf works fine, there isn't any misbehavior in Acrobat reader.

It's 100% reproducible. Do you get this, too?
Please don't suggest not to use Acrobat since it's most commonly used in the world.

Regards :)

StarGeek

Use the command in FAQ #3 to see what tags you are writing and what tags you actually want to write to.

You'll find that by default, exiftool will write to XMP-dc:Subject, which is a keywords tag.  But the Subject that you want to write to is probably XMP-pdf:Subject.
"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

jacky

Hi StarGeek,

I managed it to work before I read your post. In topic 6907 I read that someone uses -PDF:Keywords="text1" instead of what I did: "-Keywords=text1"
https://exiftool.org/forum/index.php?topic=6907.0

Now I changed all meta - infos with prefix -PDF: and it works! (although it would be sufficient only at -subject or -keywords)
But in man pages (or at https://exiftool.org/TagNames/PDF.html#Info) I don't find any hint to this prefix. From where should I have known that?
Is it correct to generally use this prefix when writing to pdf files or is it as you assume a kind of mistake?
Am I doing something completely wrong since I dont use the "XMP-..." tags?

StarGeek

Quote from: jacky on October 05, 2021, 04:48:40 PM
But in man pages (or at https://exiftool.org/TagNames/PDF.html#Info) I don't find any hint to this prefix. From where should I have known that?

By the title of the page.  There are no sub groups AFAIK, so everything on that page would be in the PDF: group.

QuoteIs it correct to generally use this prefix when writing to pdf files or is it as you assume a kind of mistake?

If you specifically want the PDF tags, I'd suggest prefixing them with PDF: so you don't write XMP tags by mistake.
"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