Copying xmp to pdf file

Started by benoit, June 28, 2011, 09:42:16 AM

Previous topic - Next topic

benoit

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.

Phil Harvey

#1
Tags must be defined in ExifTool to be writable.  See the XMP tag name documentation for a list of all writable XMP tags.

User-defined tags may be created to write any other XMP tag.  The sample config file 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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

benoit