ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: jacky on October 05, 2021, 10:47:59 AM

Title: pdf meta data "keywords" gets appended text of "subject" in acrobat reader
Post by: jacky on October 05, 2021, 10:47:59 AM
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:

(https://abload.de/img/117kd3.jpg)


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

(https://abload.de/img/2klkex.jpg)

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 :)
Title: Re: pdf meta data "keywords" gets appended text of "subject" in acrobat reader
Post by: StarGeek on October 05, 2021, 11:15:49 AM
Use the command in FAQ #3 (https://exiftool.org/faq.html#Q3) 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.
Title: Re: pdf meta data "keywords" gets appended text of "subject" in acrobat reader
Post by: jacky on October 05, 2021, 04:48:40 PM
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 (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 (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?
Title: Re: pdf meta data "keywords" gets appended text of "subject" in acrobat reader
Post by: StarGeek on October 05, 2021, 06:53:52 PM
Quote from: jacky on October 05, 2021, 04:48:40 PM
But in man pages (or at https://exiftool.org/TagNames/PDF.html#Info (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.