Main Menu

PDF USERDEFINED TAGS

Started by fiuza, March 06, 2012, 04:12:13 PM

Previous topic - Next topic

fiuza

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.

Phil Harvey

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 or the source code for the PDF module.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

fiuza

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.