PDF Metadada Upload from file?

Started by PaulaC, December 07, 2012, 12:15:01 PM

Previous topic - Next topic

PaulaC

Hi Phil, just started using exiftool. Its great !

I got 500 PDF files that need metadata added from a current excel file.

This works for an idividual file:

exiftool -Title="This is the Title" -Author="Paula" -Creator="Paula -Subject="PDF Metadata" testfile.pdf

Can I use a file (csv, txt) as an input parameter,so that I can do a batch metadata load?

I saw something for .jpg  in the documentation but cant figure it out for PDF on Windows.


Thanks!

Phil Harvey

Yes.  First, figure out what tags you want to change, then issue a command like this:

exiftool -title -creator -csv FILES > out.csv

Then look closely at the format of the "out.csv" file.  If you can produce a file with exactly the same structure, but with the values you want to write, this command will do the writing:

exiftool -csv=out.csv FILES

where FILES is the same list of file and/or directory names as in the first command (or a subset of these files;  only the files specified on the command line will be modified).

- 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 ($).