Custom scheme XMP

Started by lxlx, October 01, 2018, 05:53:14 PM

Previous topic - Next topic

Phil Harvey

Quote from: lxlx on October 02, 2018, 10:36:08 AM
Any idea?  :-\

Yes:

The property 'dc:mytest' is not defined in schema 'Dublin Core Schema'.

- 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 ($).

lxlx

Hahaha, could I specify the schema that I want to use in the configuration file for exiftool to take it? for example: http://ns.adobe.com/pdfx/1.3/

Phil Harvey

You can try, but your other validator didn't like custom tags in pdfx.

- 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 ($).

lxlx

In the config, how could you specify the schema, do you have an example that you can share with me please?

Phil Harvey

I think you're missing the point.  The schemas are defined by the various standards that are recognized by your validator.  They aren't something that is written in the file.

- 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 ($).

lxlx

Honestly, I thought that in the namespace it was specified in the config file:

https://www.pdflib.com/pdf-knowledge-base/xmp/xmp-in-pdfa/

%Image::ExifTool::UserDefined::ns_1 = (
    GROUPS        => { 0 => 'XMP', 1 => 'XMP-ns_1', 2 => 'Image' },
    NAMESPACE     => { 'ns_1' => 'http://www.aiim.org/pdfa/ns/schema#'; },
    WRITABLE      => 'string',
    tag_one => { },
    tag_two => { },
    tag_three => { },
    pumpkinpie => { },
);

%Image::ExifTool::UserDefined::ns_2 = (
    GROUPS        => { 0 => 'XMP', 1 => 'XMP-ns_2', 2 => 'Image' },
    NAMESPACE     => { 'ns_2' => 'http://www.aiim.org/pdfa/ns/schema#'; },
    WRITABLE      => 'string',
    abc_one => { },
    donuts => { },
    abc_two => { },
    spaceship => { },
    unknown => { },
);

# The %Image::ExifTool::UserDefined hash defines new tags to be added
# to existing tables.
%Image::ExifTool::UserDefined = (
    # new XMP namespaces (ie. XXX) must be added to the Main XMP table:
    'Image::ExifTool::XMP::Main' => {
        ns_1 => {
            SubDirectory => {
                TagTable => 'Image::ExifTool::UserDefined::ns_1',
            },
        },
        ns_2 => {
            SubDirectory => {
                TagTable => 'Image::ExifTool::UserDefined::ns_2',
            },
        },
    },
);

1;  #end

Could you clarify this, please?

Phil Harvey

The problem is that your validator only recognizes pre-defined schemas.

- 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 ($).