0

There is no subtitle meta tag for pdf in exiftool. Therefore I want to add new exif tag for pdf files, it's name must be PdfSubTitle. To do this, exiftool has a guide page. But I don't understand because my knowledge of perl and exif not enough. Also there is no example for pdf files in the guide. How can I do that?

When everything goes right it should be like:

$ exiftool -config exif.config -PdfSubTitle="Sub Title" file.pdf
1

First you need to define your XMP tag (a complete example here)

$ cat config.cfg
          
%Image::ExifTool::UserDefined = (
  'Image::ExifTool::XMP::pdfx' => {
     PdfSubTitle => {
         Writable => 'string',
     },
  },
);   
1; # end

Then with following command the tag and it's value will be added:

exiftool -config config.cfg -PdfSubTitle="Sub Title" test.pdf

Confirm:

$ exiftool -PdfSubTitle test.pdf
  Pdf Sub Title                   : Sub Title
 
$ exiftool exiftool test.pdf | grep 'Pdf Sub Title'
  Pdf Sub Title                   : Sub Title
1
  • Thanks! This is so helpful for me. – rojen Sep 28 '20 at 16:23

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.