ExifTool Forum

ExifTool => Newbies => Topic started by: fiuza on March 06, 2012, 04:12:13 PM

Title: PDF USERDEFINED TAGS
Post by: fiuza on March 06, 2012, 04:12:13 PM
Hi I am trying to add some new tags to Personalized in PDF file,

I tried editig the .exiftool_config but I manage only to create new tags in XMP

Can anyone give me an idea how to add those new tags to PDF Group?

Thnks
F.
Title: Re: PDF USERDEFINED TAGS
Post by: Phil Harvey on March 06, 2012, 07:53:54 PM
Interesting.  I would probably suggest adding custom XMP tags to PDF.  But if you really want to create new native PDF tags, they go in the Info dictionary:

%Image::ExifTool::UserDefined = (
    'Image::ExifTool::PDF::Info' => {
        TestTag => { },
    },
);
1; # end


To figure out this on your own, you would have to look at the PDF tag name documentation (https://exiftool.org/TagNames/PDF.html) or the source code for the PDF module (http://cpansearch.perl.org/src/EXIFTOOL/Image-ExifTool-8.77/lib/Image/ExifTool/PDF.pm).

- Phil
Title: Re: PDF USERDEFINED TAGS
Post by: fiuza on March 07, 2012, 09:49:52 AM
Perfect Phil,

Thanks for your quick answer.
It worked fine.
Exactly what I wanted to achieve.

The reason for that is that it is easily viewed in any Acrobat Reader in the Personalized  tab.