Hi all,
I have to add xmp tags from an xml file into a pdf.
I verified my tags with these code:
$exiftool -a -XMP-dzgmeta:all C25003LAAMD.xml
Element Name : Nom fichier/Job ID
Element Value : C25003LAAMD.pdf
Element Name : Numéro d'Ordre/Order ID
Element Value : 792696
But when I try to copy these tags into my pdf I get an error message:
$ exiftool -a -v -TagsFromFile C25003LAAMD.xml -XMP-dzgmeta:all C25003LAAMD.pdf
Setting new values from C25003LAAMD.xml
Warning: No writable tags found - C25003LAAMD.xml
======== C25003LAAMD.pdf
Nothing changed in C25003LAAMD.pdf
0 image files updated
1 image files unchanged
Any idea of what is wrong?
Thanks,
Benoit
PH Edit: Put example output in code blocks.
Tags must be defined in ExifTool to be writable. See the XMP tag name documentation (https://exiftool.org/TagNames/XMP.html) for a list of all writable XMP tags.
User-defined tags may be created to write any other XMP tag. The sample config file (https://exiftool.org/config.html) contains some examples of how to create user-defined XMP tags.
Note that XMP is written as RDF/XML, which is different format than your input XML file. Instead of using Name/Value pairs, you should create tags with appropriate names to store the values. Copying this type of information from XML may be problematic using exiftool because it is difficult to associate the name/value pairs.
- Phil
Many thanks Phil!