Sobesednik / node-exiftool

A Node.js interface to exiftool command-line application.
MIT License
91 stars 15 forks source link

Defining custom XMP tags #50

Open nicmeriano opened 4 years ago

nicmeriano commented 4 years ago

Is there a way to define custom xmp tags through a config file?

ausias-armesto commented 4 years ago

I also would like to be able to define custom xmp-pdfx attributes to PDF files. I have been able to do it from command line, but would be interested if it was natively by node.

Having the following configuration for exifTool saved at ./exiftool.config:

%Image::ExifTool::UserDefined = (
    'Image::ExifTool::XMP::pdfx' => {
        Categories => { },
    },
    'Image::ExifTool::PDF::Info' => {
        Categories => { List => 'string' },
    },
);

1;  #end
exiftool -config ./exiftool.config -xmp-pdfx:categories="test" -pdf:categories="test" ./somePdfFile.pdf
anasshakil commented 1 year ago

Please take a look at my repo. I hope it'll solve your problem Link: https://github.com/anasshakil/metadata