How can I add metadata to a DjVu file?

Desired result:

$ exiftool sample.djvu | grep -P "^===|Title|Author"
Title                           : Group Theory and Physics
Author                          : Shlomo Sternberg

It sounds like XMP metadata would do the trick:

$ djvused sample.djvu -e 'set-xmp sample.xmp'

Though I'm unsure how to create the XMP file itself -- and examples on the internet are sparse.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.