-tagsfromfile and OPF Metadata

Started by Mac2, July 28, 2014, 01:49:41 PM

Previous topic - Next topic

Mac2

Hi,

I use -tagsfromfile and various options to extract metadata from XMP sidecar files and other files into an XML file for ingesting. The ARG files look something like

-use
MWG
-tagsfromfile
{source_file}
{options}

This works great, usually.

Today I tried this with an OPF file (a XMP file variant used by several eBook applications). ExifTool can understand this format (Phil has added support for it a while ago).

ExifTool reports:

Warning: [minor] Error 3 placing dc:packageMetadataIdentifierScheme in structure or list
Warning: No writable tags set from <filename>


The resulting XML file holds no data. It seems that the xmp:dc Package metadata cannot be written or copied by ExifTool. Is this by design or do I need to set any special options?

I have attached a sample file (renamed to XMP).

Phil Harvey

I haven't added support for reading OPF except from inside an EPUB file.  However, ExifTool will read it like any other XML file.  The problem is that you get tag names with "PackageMetadata" at the start.  Eventually I may add a patch for this, but for now you need to translate the tag names as I mentioned in this post of a recent thread.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Mac2

Thanks, Phil

Too much effort. I just ask the user to import the ODF data into his PDF files as you outlined in the (apparently) related thread.