ExifTool Forum

ExifTool => Newbies => Topic started by: Chris on January 15, 2019, 07:10:02 AM

Title: Write XMP-dc
Post by: Chris on January 15, 2019, 07:10:02 AM
Hi,

The command-line below doesn't work whit my PDF file :

"exiftool -xmp-dc:publisher="CEA" test1.pdf

The result message is "1 image files updated" but the new metadata "CEA" is not in my file...

Could you help me ?

Thanks

(I join the pdf file)
Title: Re: Write XMP-dc
Post by: Phil Harvey on January 15, 2019, 07:34:32 AM
Why do you say the new metadata is not in your file?

This is what I see in the file you sent:

> exiftool -xmp:all -G1 test1.pdf
[XMP-x]         XMP Toolkit                     : Image::ExifTool 10.11
[XMP-dc]        Format                          : application/pdf
[XMP-dc]        Publisher                       : CEA
[XMP-dc]        Title                           : essai de titre
[XMP-pdf]       Keywords                        :
[XMP-pdf]       Producer                        : Microsoft® Word 2016
[XMP-xmp]       Create Date                     : 2018:11:22 10:00:29+01:00
[XMP-xmp]       Creator Tool                    : Microsoft® Word 2016
[XMP-xmp]       Metadata Date                   : 2019:01:15 12:08:02+01:00
[XMP-xmp]       Modify Date                     : 2019:01:15 12:08:02+01:00
[XMP-xmpMM]     Document ID                     : uuid:4ef2f10f-870d-4379-8b87-37f80ca0e8d7
[XMP-xmpMM]     Instance ID                     : uuid:72a1a3f9-6c68-45d6-8a44-29e4777614b9


Publisher is set to "CEA" as you wanted.

Also, I suggest updating your ExifTool.  The current version is 11.24.

- Phil
Title: Re: Write XMP-dc
Post by: Chris on January 15, 2019, 11:19:30 AM
Sorry, I wasn't very clear....

Yes, I can see the value with EXIFTOOL, but I can't see it in the XMP info panel, in the pdf file. ("Publisher" is "Emetteur" in french).
(I join the mask ant a screenshot).

Thank's

Title: Re: Write XMP-dc
Post by: Phil Harvey on January 15, 2019, 11:23:13 AM
Try writing the publisher with your other software, then ExifTool to see what was changed (FAQ 3 (https://exiftool.org/faq.html#Q3)).

- Phil
Title: Re: Write XMP-dc
Post by: Chris on January 16, 2019, 04:25:15 AM
OK Phil,
When I write the publisher tag with my application, the result of the command-line "exiftool -a -G1 -s test1.pdf is :

---- ExifTool ----
ExifToolVersion                 : 10.11
Warning                         : [Minor] Ignored duplicate Info dictionary
---- System ----
FileName                        : test1.pdf
Directory                       : .
FileSize                        : 149 kB
FileModifyDate                  : 2019:01:16 10:15:06+01:00
FileAccessDate                  : 2019:01:16 10:14:28+01:00
FileCreateDate                  : 2019:01:16 09:56:49+01:00
FilePermissions                 : rw-rw-rw-
---- File ----
FileType                        : PDF
FileTypeExtension               : pdf
MIMEType                        : application/pdf
---- PDF ----
PDFVersion                      : 1.5
Linearized                      : No
Language                        : fr-FR
TaggedPDF                       : Yes
PageCount                       : 1
CreateDate                      : 2018:11:22 10:00:29+01:00
Creator                         : Microsoft® Word 2016
ModifyDate                      : 2019:01:16 10:15:06+01:00
Producer                        : Microsoft® Word 2016
---- XMP-x ----
XMPToolkit                      : Adobe XMP Core 5.6-c015 84.159810, 2016/09/10-02:41:30
---- XMP-dc ----
Format                          : application/pdf
Publisher                       : WITHOUT EXIFTOOL
---- XMP-xmp ----
CreateDate                      : 2018:11:22 10:00:29+01:00
CreatorTool                     : Microsoft® Word 2016
ModifyDate                      : 2019:01:16 10:15:06+01:00
MetadataDate                    : 2019:01:16 10:15:06+01:00
---- XMP-pdf ----
Producer                        : Microsoft® Word 2016
Keywords                        :
---- XMP-xmpMM ----
DocumentID                      : uuid:4ef2f10f-870d-4379-8b87-37f80ca0e8d7
InstanceID                      : uuid:482af9aa-9f73-462a-968e-2273a3231630


When I write with EXIFTOOL (command-line : "exiftool -xmp-dc:publisher="WITH EXIFTOOL" test1.pdf), the result is :

---- ExifTool ----
ExifToolVersion                 : 10.11
Warning                         : [Minor] Ignored duplicate Info dictionary
---- System ----
FileName                        : test1.pdf
Directory                       : .
FileSize                        : 149 kB
FileModifyDate                  : 2019:01:16 10:17:35+01:00
FileAccessDate                  : 2019:01:16 10:17:35+01:00
FileCreateDate                  : 2019:01:16 10:17:02+01:00
FilePermissions                 : rw-rw-rw-
---- File ----
FileType                        : PDF
FileTypeExtension               : pdf
MIMEType                        : application/pdf
---- PDF ----
PDFVersion                      : 1.5
Linearized                      : No
Language                        : fr-FR
TaggedPDF                       : Yes
PageCount                       : 1
CreateDate                      : 2018:11:22 10:00:29+01:00
Creator                         : Microsoft® Word 2016
ModifyDate                      : 2018:11:22 10:10:43+01:00
Producer                        : Microsoft® Word 2016
---- XMP-x ----
XMPToolkit                      : Image::ExifTool 10.11
---- XMP-dc ----
Format                          : application/pdf
Publisher                       : WITH EXIFTOOL
---- XMP-pdf ----
Producer                        : Microsoft® Word 2016
---- XMP-xmp ----
CreateDate                      : 2018:11:22 10:00:29+01:00
CreatorTool                     : Microsoft® Word 2016
MetadataDate                    : 2018:11:22 10:10:43+01:00
ModifyDate                      : 2018:11:22 10:10:43+01:00
---- XMP-xmpMM ----
DocumentID                      : uuid:4ef2f10f-870d-4379-8b87-37f80ca0e8d7
InstanceID                      : uuid:9063d405-ccce-4f44-af16-71d3ed288d12


So, I think, it's the same result, no ?

Thank's
Title: Re: Write XMP-dc
Post by: Phil Harvey on January 16, 2019, 07:08:27 AM
They look the same at this level.  What application are you using?  Could you email me both PDF files so I can reproduce this?  My email is philharvey66 at gmail.com

- Phil
Title: Re: Write XMP-dc
Post by: Chris on January 16, 2019, 08:06:40 AM
In fact, I just write the tag with ACROBAT, in the info panels (tag "Emetteur" in french...). (see scan)

I join the Custom file Info Panels....

Thanks
Title: Re: Write XMP-dc
Post by: Phil Harvey on January 16, 2019, 08:56:34 AM
I have no idea what the xmp_docs.txt and xmp_docs_fr-fr.dat files that you have posted (twice) are for.

Can you write other XMP-dc properties (such as XMP-dc:Title) with ExifTool and see that in Acrobat?

- Phil
Title: Re: Write XMP-dc
Post by: Chris on January 16, 2019, 09:53:35 AM
These files allow you to enter the tags directly in ACROBAT, after you have placed them in the directory "Custom File Info Panels" from ADOBE. (see scan)

Yes, with XMP-dc:Title, it works well.
Title: Re: Write XMP-dc
Post by: Phil Harvey on January 16, 2019, 10:00:00 AM
Since the standard XMP-dc:Title works, but your custom file info tag doesn't, I suggest the problem is somehow with your custom file info definitions.

- Phil
Title: Re: Write XMP-dc
Post by: Chris on January 17, 2019, 07:49:19 AM
Thank's Phil,
Ok ,I'll look in this way....

Chris.